How is the tail-recursion achieved with ZIO.flatMap #8357
Unanswered
realvictorprm
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that the ZIO.loop method is using a flatMap (what a suprise /s) and more importantly that although the flatMap is used, the function appears to be tail-recursive. Can someone help me to understand how that magic is achieved?
Beta Was this translation helpful? Give feedback.
All reactions