Hi there,
I would like to know your opinion about an `Enum.repeat/2` function. In test, I notice often that I write:
Enum.map(1..5, fn(_) -> :something end)
[:something, :something, :something, :something, :something]
or
for (_ Enter code here... <- 1..5), do: :something
=> [:something, :something, :something, :something, :something]
As I am not interested in the value of the input, I think a `Enum.repeat/2` function would be more efficient:
Enum.repeat(5, fn -> :something end)
=> [:something, :something, :something, :something, :something]
I am aware that `Enum.times/2` is deprecated in the past in favour of ranges. I want to highlight that in that function, the value was passed to the function.
What is your take? Or perhaps I overlooked a function?