5 ms·
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 f
by sea6ear 16y ago
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)