Last active
December 20, 2015 23:50
-
-
Save hideshi/4f7b0af412fa02ede03f to your computer and use it in GitHub Desktop.
[翻訳]Elixirコミュニティ向けの新しいオープンソースツールの紹介 ref: http://qiita.com/hideshi@github/items/d8e23cc8aeed766f0b6e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python | |
" ".join(map(str.capitalize, "hello_there_world".split("_"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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