3 ms·
I tend to replace most instances of Enum.map with filters. Filters are also easier to read than quite a few instances of Enum.filter or Enum.into, too! Outside
by AlchemistCamp 3y ago
I tend to replace most instances of Enum.map with filters. Filters are also easier to read than quite a few instances of Enum.filter or Enum.into, too!
Outside of things like generating a game board, or some other well structured n-dimensional struct, I generally avoid nesting them, though. I’ll use Enum on the outer function(s) and filter for the inner one.