• lad@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    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.