I expect it like this:
take = fn map, keys ->
Enum.map keys, & Map.get(map, &1)
end
a = %{a: 1, b: 2, c: 3}
take.(a, [:b, :c])
> [2, 3]
Well, I don’t think it has to be renamed. Just want to know what other people think about it.
I expect it like this:
take = fn map, keys ->
Enum.map keys, & Map.get(map, &1)
end
a = %{a: 1, b: 2, c: 3}
take.(a, [:b, :c])
> [2, 3]
Well, I don’t think it has to be renamed. Just want to know what other people think about it.