NX2@feddit.de to Programmer Humor@programming.dev · vor 2 JahrenWhat the f*ck is a monadfeddit.deimagemessage-square38fedilinkarrow-up1205arrow-down112
arrow-up1193arrow-down1imageWhat the f*ck is a monadfeddit.deNX2@feddit.de to Programmer Humor@programming.dev · vor 2 Jahrenmessage-square38fedilink
minus-squarelad@programming.devlinkfedilinkarrow-up3·vor 2 JahrenIIRC 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.