Created
November 4, 2015 02:46
-
-
Save MonkeyIsNull/02b43cd673a228d57fc0 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
defmodule Modfuncs do | |
def modelx(%{:name => name, :droid => true}) do | |
name <> "-NG" | |
end | |
def modelx(%{:name => name, :droid => false}) do | |
name | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment