News for hackers. Stuff that matters.
Re:Making Map Operations Implicit in Programming by porges on Tuesday December 17, 2013 @10:27PM (#6925715)
My favourite example of a language with 'automatic functorization' is Icon/Unicon. All functions, when applied to generators, themselves become generators.

So e.g. `read` is a generator that reads lines from the input, `write` writes a line to output, and the composition of them, `write(read())`, is a generator that copies lines from input to output. To run the generator, you can write `while write(read())`.

There are no comments on this comment yet.