Skip to content

Instantly share code, notes, and snippets.

@jfacorro
Created February 26, 2017 12:50
Show Gist options
  • Save jfacorro/ff4680b79e5ccd4e9fdf13d7754ce090 to your computer and use it in GitHub Desktop.
Save jfacorro/ff4680b79e5ccd4e9fdf13d7754ce090 to your computer and use it in GitHub Desktop.
Pattern matching in function arguments
-module(pattern).
-export([is_equal/2]).
is_equal(X,X) -> 1;
is_equal(X,Y) -> 0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment