Tips for golfing in LiveScript What general tips do you have for golfing in LiveScript? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to LiveScript (e.g. "remove comments" is not an answer). Please post one tip per answer.
Take advantage of curried functions and Prelude.ls

If the function is already curried, it can be much shorter overall. Also, Prelude.ls is the standard library, and its functions are often very useful. This means, unless otherwise specified, this library is 100% allowed. Examples:

f=-&gt;[1 to &amp;0].reduce (*) # space required
f=-&gt;product [1 to &amp;0]

s=(.reduce (+))
s=sum                    # better yet, avoid defining this when possible

d=(.map (*2))
d=map (*2)               # Sometimes even shorter than native methods

r=-&gt;&amp;0.reduce (-&amp;1-)
r=-&gt;fold1 (-&amp;1-),&amp;0      # Equal if starting value is required.

a.=sort!
a=sort a                 # sometimes the same length

a.=sort -&gt;&amp;1.length-&amp;0.length # space before arrow required
a.=sort over (-),(.length)    # slightly more functional
a=sortBy (.length)            # specific builtin, always prefer CamelCase