Pointless API Docs
pointless/prelude/function.ptls (source)
compose(a, b) link
compose(a, b) = x => b(a(x))
id(a) link
id(a) = a
const(a, b) link
const(a, b) = a example: length(list) = list |> map(const(1)) |> sum
iterate(func, init) link
Get an infinte list [init, func(init), func(func(init)) ...]
apply(args, func) link
call a function with the values in a given list as arguments
composeAll(funcs) link
compose a list of functions example: composeAll([a, b, c]) = x => x |> a |> b |> c