• pegazz@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    8 hours ago

    Optional is my favorite example to give, at this point most people have internalized how to use its map function and how it works

    • magic_lobster_party@fedia.io
      link
      fedilink
      arrow-up
      3
      ·
      5 hours ago

      That’s a good one.

      A rule of thumb is that if it has map and flatMap (or equivalent), then chances are that it’s a monad.