Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save binarytemple/fd0affa46b7ba5e8f09b253b9194863d to your computer and use it in GitHub Desktop.
Save binarytemple/fd0affa46b7ba5e8f09b253b9194863d to your computer and use it in GitHub Desktop.

add = fn x -> case x do {x,y,f} -> f.(x,y) {x,y} -> x + y _ -> raise("bad match") end end

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