Skip to content

Instantly share code, notes, and snippets.

@xaviervia
Last active February 26, 2017 18:51
Show Gist options
  • Save xaviervia/70beebb39ffaf15014159e3752e04d34 to your computer and use it in GitHub Desktop.
Save xaviervia/70beebb39ffaf15014159e3752e04d34 to your computer and use it in GitHub Desktop.

Iso:

  • to (orange to red turn)
  • from (red to orange turn)

Setoid:  - equals =

SemiGroup:  - concat +

Monoid:  - empty

Functor:  - map @

Covariant:

  • contramap

Bifunctor:

  • bimap

Profunctor:

  • promap

Alt:

  • alt

Plus:

  • zero

Applicative:

  • ap

Extend:

  • extend

ChainRec:

  • chainRec

Monad:

  • chain
  • (of is lift)
  • join?

Comonad:

  • extract

Trasversable:

  • traverse

Catamorphism?:

  • cata

(what about the other morphisms)

Foldable?:

Misc:

compose, flip, curry, etc are done graphically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment