You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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