NX2@feddit.de to Programmer Humor@programming.dev · 1 year agoWhat the f*ck is a monadfeddit.deimagemessage-square29fedilinkarrow-up123
arrow-up122imageWhat the f*ck is a monadfeddit.deNX2@feddit.de to Programmer Humor@programming.dev · 1 year agomessage-square29fedilink
minus-squarelad@programming.devlinkfedilinkarrow-up1·1 year agoIIRC monoid also requires you to have zero, so that an initial value is known for any repetitive operation. In case of an array that’d be an empty one, in case of promise that’d be doing nothing, I guess.
IIRC monoid also requires you to have
zero
, so that an initial value is known for any repetitive operation. In case of an array that’d be an empty one, in case of promise that’d be doing nothing, I guess.