I am working on a project where I have to change a string and add it to a list.
Something like this:
def function(string, amount), do: "string + amount" end
where the amount is increasing until n.
The next step is to add this string to a list, so I'll receive:
[string1, string2,...., string]
How can I append this string recursively to the list based in the increased amount, using Elixir?