Skip to content

Instantly share code, notes, and snippets.

@lnds
Created January 11, 2016 20:57
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 lnds/150e5656d9adb12d38e9 to your computer and use it in GitHub Desktop.
Save lnds/150e5656d9adb12d38e9 to your computer and use it in GitHub Desktop.
guards en Erlang
is_digit(C) when C >= $0, C=<$9 -> true;
is_digit(_) -> false.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment