Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Once you go functional, you can never go back. Parent comment
Here's a map in C
void *map(void *in, void (*f)(void *src, void *dst), size_t size, size_t in_s, size_t out_s) { void *out = malloc(size * out_s); for(size_t i = 0; i < size; i++) f(in + (i * in_s), out + (i * out_s)); return out; }
There are no comments on this comment yet.
Here's a map in C