Created
April 21, 2017 10:10
-
-
Save shahryarjb/4ed328d871870a2885621c57f03437bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# my blog : https://trangell.com/fa/ | |
# public : http://iranonrails.ir | |
defmodule Factorial do | |
def of(0), do: 1 | |
def of(n), do: n * of(n - 1) | |
end |
Author
shahryarjb
commented
Apr 21, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment