Skip to content

Instantly share code, notes, and snippets.

@gvolpe
Created March 2, 2019 06:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gvolpe/70477686b08c46ee4ea9ff191fbfb653 to your computer and use it in GitHub Desktop.
Save gvolpe/70477686b08c46ee4ea9ff191fbfb653 to your computer and use it in GitHub Desktop.
flip' :: (a -> b -> c) -> b -> a -> c
flip' f b a = f a b
andThen :: (a -> b) -> (b -> c) -> a -> c
andThen = flip' (.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment