Created
May 8, 2017 18:32
-
-
Save pkoch/fb6c0c48cada6e66acba09b1447c5ec6 to your computer and use it in GitHub Desktop.
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
defmodule Derp do | |
def project(map, args) do | |
for k <- args, do: map[k] | |
end | |
end | |
IO.inspect Derp.project(%{a: 1, b: 2}, [:b, :a]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment