should call anonymous function with dot

This commit is contained in:
Jason Huang
2017-01-24 13:36:42 +08:00
parent 3b1980b7d9
commit 55f59208b2

View File

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