5 ms·
Make the right side of the function call a list or a dict. myListOfInts foldLeft (0, +) or if you make : to be right associative cons function myListOfIn
by snidane 7y ago
Make the right side of the function call a list or a dict.
myListOfInts foldLeft (0, +)
or if you make : to be right associative cons function
myListOfInts foldLeft 0 : +
or using dict
myListOfInts foldLeft (zero: 0, op: +)
- lmm 7y agoAt that point you're introducing significantly more syntax, destroying the nice lisplike properties.