list.foldl(
function(a,b){return a + b;},
0,
list.map(
function(curr){return curr * 2;},
list.filter(
function(curr){return curr % 2 === 0;},
list.range(10)
)
)
);
//=>
cons.print(
list.reverse(
list.sort(
function (a, b){return a < b},
list.list(7,89,5,8,43,2,6,1)
)
),
{prefix: '', suffix: '', separator: ','}
);
//=>
function add(){
return list.foldl(
function(prev, curr){return curr + prev;},
0,
list.list(helpers.args(arguments))
);
}
fun.curry(add, 5)(1)(2)(3)(4)(5);
//=>
Ctrl-Enter / Cmd-Enter will print results to the special comment //=>. This comment will print the results of the prior statement.