tracks/elixir/exercises/kindergarten-garden/example.exs in trackler-2.2.1.109 vs tracks/elixir/exercises/kindergarten-garden/example.exs in trackler-2.2.1.110

- old
+ new

@@ -1,8 +1,20 @@ defmodule Garden do - @default_names [:alice, :bob, :charlie, :david, :eve, :fred, :ginny, :harriet, - :ileana, :joseph, :kincaid, :larry] + @default_names [ + :alice, + :bob, + :charlie, + :david, + :eve, + :fred, + :ginny, + :harriet, + :ileana, + :joseph, + :kincaid, + :larry + ] @letter_map %{"V" => :violets, "R" => :radishes, "C" => :clover, "G" => :grass} @doc """ Accepts a string representing the arrangement of cups on a windowsill and a list with names of students in the class. The student names list does not @@ -44,10 +56,10 @@ populate_map(first_row, second_row, map, student_names) end defp add_to_map(map, current_name, letters) do letters = String.codepoints(letters) - translated_list = Enum.map(letters, fn(letter) -> @letter_map[letter] end) + translated_list = Enum.map(letters, fn letter -> @letter_map[letter] end) tuple = List.to_tuple(translated_list) Map.put(map, current_name, tuple) end end