Skip to content

Instantly share code, notes, and snippets.

@hideshi
Last active December 20, 2015 23:50
Show Gist options
  • Save hideshi/4f7b0af412fa02ede03f to your computer and use it in GitHub Desktop.
Save hideshi/4f7b0af412fa02ede03f to your computer and use it in GitHub Desktop.
[翻訳]Elixirコミュニティ向けの新しいオープンソースツールの紹介 ref: http://qiita.com/hideshi@github/items/d8e23cc8aeed766f0b6e
my_map = HashDict.new
other_map = HashDict.put(my_map, :my_age, 39)
IO.inspect(my_map)
#HashDict<[]> # my_map has not been changed
IO.inspect(other_map)
#HashDict<[my_age: 39]> # other_map has the new values
python
" ".join(map(str.capitalize, "hello_there_world".split("_")))
elixir
"hello_there_world"
|> String.split("_")
|> Enum.map(&String.capitalize\1)
|> Enum.join(" ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment