Hi everyone, first topic here! currently I’m finishing the ‘Programming Elixir 1.3’ book and I wondered about something…
The String.duplicate\2
function name is not clear… I say this because, at least in my point of view when I say duplicate it automatically referts to make it twice (What’s the meaning of duplicate 3 times ??)
So String.duplicate("a")
would return "aa"
It would be something like String.replicate\2
or String.repeat\2
(Replicate n-times or repeat n-times).
I hope I get understood, English isn’t my native language and I’m just learning Elixir at the moment.
Thanks for the wonderful community.
Kisses to everyone