Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Async-await on stable Rust. Parent comment
You can also definitely implement iterators using first-order functions:
const iterate = array => { const step = index => ({ value: array[index], next: () => step(index + 1) }); return step(0); } // add some combinators on top
You can also definitely implement iterators using first-order functions:
First order functions can in fact implement anything if you’re willing to accept some bad syntax and speed — that’s the Church-Turing equivalence.