Open GodefroyClair opened 7 months ago
Hi @GodefroyClair!
Thanks for reaching out!
The solution in the book includes the currencyRate
for n=1
while your solution doesn't.
If you run the program returned from your function when n=1
, the program will return an empty List
when executed successfully while we expect a List
with one element.
Let me know if you have more questions.
Hi, you have written this recursive function in chapter 9 (streams as value):
Is there a reason why you didn't write the (IMH simplest) function :
Maybe I'm missing something?