Skip to content

Instantly share code, notes, and snippets.

@siddhartha-gadgil
Created March 22, 2014 09:15
Show Gist options
  • Save siddhartha-gadgil/9703635 to your computer and use it in GitHub Desktop.
Save siddhartha-gadgil/9703635 to your computer and use it in GitHub Desktop.
if_then_else : {A : Set} → Bool → A → A → A
if true then x else _ = x
if false then _ else y = y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment