4 ms·
FYI, you don't have to include an empty parameter list for defining functions that don't take any arguments. Just the arrow will do. foo = -> a = bar
by jashkenas 16y ago
FYI, you don't have to include an empty parameter list for defining functions that don't take any arguments. Just the arrow will do.
foo = ->
a = bar()
z = ->
if a
b = fu()
else
b = kar()