Pinned Loading
-
Linked list in javascript, as a sing...
Linked list in javascript, as a single fold function. 1// Aliases h=head, t=tail, f=function, z=zero (aka identity), n=node as right fold.
2let n = (h,t) => (f,z) =>
3t ? f(h, t(f,z)) : f(h,z)
45let p = console.log
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.