3 ms·
TIL about Monofunctor. Pretty nifty. It's for cases where your type is a container of something (as opposed to anything). I.E. you can .map (or .Select if yo
by mrkeen 9mo ago
TIL about Monofunctor.
Pretty nifty. It's for cases where your type is a container of something (as opposed to anything).
I.E. you can .map (or .Select if you're .NET-inclined) over the Chars in a String, but not some other type, because String can't hold another type.
https://hackage.haskell.org/package/mono-traversable-1.0.21.0/docs/Data-MonoTraversable.html#t:MonoFunctor https://hackage.haskell.org/package/mono-traversable-1.0.21....