by natefaubion · 14y ago · 0 comments
mymap = pattern { '_, []' : -> [] 'f, [x, xs...]' : (f, x, xs) -> [f x].concat mymap(f, xs) }
http://gkz.github.com/LiveScript/#switch