Skip to content

Instantly share code, notes, and snippets.

@monkey-codes
Created June 9, 2023 23:35
Show Gist options
  • Select an option

  • Save monkey-codes/3402ae7b821908f5a49301a238f17e48 to your computer and use it in GitHub Desktop.

Select an option

Save monkey-codes/3402ae7b821908f5a49301a238f17e48 to your computer and use it in GitHub Desktop.
Monad associative law
(m.flatMap(f)).flatMap(g) == m.flatMap { x -> f(x).flatMap(g) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment