Merge pull request #107 from iamvery/pipe-description

Update description of piping
This commit is contained in:
Uku Taht
2016-05-05 11:37:11 +01:00

View File

@@ -77,7 +77,7 @@ defmodule Functions do
assert times_five_and_then(2, cube) == ___ assert times_five_and_then(2, cube) == ___
end end
koan "Functions can be combined elegantly with the pipe operator" do koan "The result of a function can be piped into the first argument of another function" do
result = "full-name" result = "full-name"
|> String.split("-") |> String.split("-")
|> Enum.map(&(String.capitalize(&1))) |> Enum.map(&(String.capitalize(&1)))