How do I get to create or change this function to print out the Numbers in ascending order
if the provided variable is 4 the output should be
0
1
2
3
4
currently, I have created this one it prints in decending order, if input 4 output is :
4
3
2
1
0
here is the function:
def print(-1), do: :done
def print(n) do
puts("#{n} is #{[n]}")
print (n - 1)
end