Merge branch 'pr/163'

This commit is contained in:
Jay Hayes
2017-01-24 08:09:40 -06:00
2 changed files with 3 additions and 3 deletions

View File

@@ -68,8 +68,8 @@ defmodule Functions do
end
koan "Prefix a string with & to build a simple anonymous greet function" do
greet = &"Hello, #{&1}!"
assert greet("Foo") == ___
greet = &"Hi, #{&1}!"
assert greet.("Foo") == ___
end
koan "You can build anonymous functions out of any elixir expression by prefixing it with &" do

View File

@@ -13,7 +13,7 @@ defmodule FunctionsTests do
{:multiple, ["The number was zero", "The number was 5"]},
6,
6,
"Hello, Foo!",
"Hi, Foo!",
["foo", "foo", "foo"],
100,
1000,