Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defmodule TestCode do
- def hello() do
- a = [foo: "bar", hello: "world", hello: "test"]
- m = %{:foo => "hoge", "hoge" => "bar"}
- IO.inspect a
- IO.inspect m[m.foo]
- m2 = %{m | :foo => "hhhh"}
- IO.inspect m.foo
- IO.inspect m2.foo
- enum_functions = Enum.__info__(:functions)
- IO.inspect(enum_functions)
- Enum.__info__(:functions) |> Enum.each(fn({function, arity}) -> IO.puts "#{function}/#{arity}" end)
- end
- end
- TestCode.hello()
Add Comment
Please, Sign In to add comment