Question : elixir enum map_every
Answered by : juan-d-khusuma
# Apply function every three items
Enum.map_every([1, 2, 3, 4, 5, 6, 7, 8], 3, fn x -> x + 1000 end)
[1001, 2, 3, 1004, 5, 6, 1007, 8]
Source : https://elixirschool.com/en/lessons/basics/enum | Last Update : Fri, 20 May 22