I was completely taken off guard the first time I saw yield in a code base. I just thought of them as alternative to returning arrays until I learned about what generators are.
I haven't used them a lot but now I know what I'm looking at in third party code! 😅
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Plausible functions are a great way to put it! 💡
I was completely taken off guard the first time I saw
yield
in a code base. I just thought of them as alternative to returning arrays until I learned about what generators are.I haven't used them a lot but now I know what I'm looking at in third party code! 😅