Skip to content

Instantly share code, notes, and snippets.

@sudowork
Created March 26, 2013 10:51
Show Gist options
  • Select an option

  • Save sudowork/5244544 to your computer and use it in GitHub Desktop.

Select an option

Save sudowork/5244544 to your computer and use it in GitHub Desktop.
% Anonymous functions
One = fun() -> 1 end.
Inc = fun(X) -> X + 1 end.
Add = fun(X,Y) -> X + Y end.
% Aliasing a function/Referencing an external function
AbsAlias = fun erlang:abs/1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment