Skip to content

Instantly share code, notes, and snippets.

View muhammednagy's full-sized avatar
😎
Working

Nagy Salem muhammednagy

😎
Working
View GitHub Profile
@muhammednagy
muhammednagy / fun.erl
Last active February 24, 2017 17:54
variables and patterns in erlang
-module(fun).
-export([maxThree/3,howManyEqual/3]).
maxThree(A,B,C) ->
Z = max(A,B),
max(Z,C).
howManyEqual(A,A,_) ->
2;