News for hackers. Stuff that matters.
Re:Functional programming, APL and UNIX pipes by sea6ear on Monday May 24, 2010 @11:46AM (#1374877)
Method chaining in a fairly pure OO language (Ruby or Smalltalk or similar) can work like this. (where all operations are methods on objects rather than being functions in their own namespaces/utility classes)

In this case the "." is functioning sort of like the pipe.

something like [1, 2, 3].first().add(2)

There are no comments on this comment yet.