4 ms·
FWIW. map() already exists. It's a global function, rather than being a protocol method, and it uses overloading. So you can still define functions merely by de
by eridius 12y ago
FWIW. map() already exists. It's a global function, rather than being a protocol method, and it uses overloading. So you can still define functions merely by defining a new overload for map() that operates on your type.
- eridius 12y agoSigh, I typed "functors", not "functions", which should make a bit more sense. Autocorrect changed that without me noticing.