2016 Update

This commit is contained in:
Tina Müller 2016-12-05 22:15:40 +01:00
parent 948b86eafa
commit dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions

View file

@ -7,7 +7,7 @@ defmodule Caesar_cipher do
def encode(text, key) do
map = Map.new |> set_map(?a..?z, key) |> set_map(?A..?Z, key)
String.codepoints(text) |> Enum.map_join(fn c -> Dict.get(map, c, c) end)
String.graphemes(text) |> Enum.map_join(fn c -> Map.get(map, c, c) end)
end
end