enum each code example
Example 1: enum foreach
foreach (Suit suit in (Suit[]) Enum.GetValues(typeof(Suit)))
{
}
Example 2: foreach enum
foreach (MyEnum enumValue in (MyEnum[]) Enum.GetValues(typeof(MyEnum)))
{
}
Example 3: filter elixir enum example
# filter, sum
[1.0,2.0,nil] |> Enum.filter(&(&1|>is_float))|> Enum.sum
# map
0..0 |> Enum.map(&(&1+1))