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)) ...]