hello I'm very interested by streams and the different ways to construct them, but I can't understand why in "factorials" the "recursive" call is with the argument x-2 and not x-1. I have tested it and with x-1 there is a stack overflow... can you explain me this mistery?
hello
ReplyDeleteI'm very interested by streams and the different ways to construct them, but I can't understand why in "factorials" the "recursive" call is with the argument x-2 and not x-1.
I have tested it and with x-1 there is a stack overflow...
can you explain me this mistery?
I updated the gist with an explanation.
ReplyDelete