I can write
unitlist |> Enum.filter(&(s in &1))
or I can write
for u <- unitlist, s in u, do: u
What is the difference in capabilities of the two constructs?
I can write
unitlist |> Enum.filter(&(s in &1))
or I can write
for u <- unitlist, s in u, do: u
What is the difference in capabilities of the two constructs?