Swap order of zipped lists to create learning opportunity

Zipping atoms and numbers creates an opportunity for the learner to
realize "💡 I just made a keyword list!"
This commit is contained in:
Jay Hayes
2016-05-04 19:36:12 -05:00
parent 3e163a2bd3
commit d37df5fa77
2 changed files with 3 additions and 3 deletions

View File

@@ -55,9 +55,9 @@ defmodule Enums do
end
koan "Zip-up in pairs!" do
numbers = [1, 2, 3]
letters = [:a, :b, :c]
assert Enum.zip(numbers, letters) == ___
numbers = [1 ,2 ,3]
assert Enum.zip(letters, numbers) == ___
end
koan "When you want to find that one pesky element" do