Guest User

Untitled

a guest
Jan 6th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. lst = [
  2. %{:a => "hello", :b => "world"},
  3. %{:a => "foo", :b => "bar"}
  4. ]
  5.  
  6. lst
  7. |> Enum.filter(fn(%{:a => a, :b => b} = item)
  8. -> a == "hello" end
  9. )
Add Comment
Please, Sign In to add comment