In Python you can yield values from a function, making it a generator function, and the yielded values can then be fed to iterators and finally consumed when e.g. creating lists. I'm sure something similar can be done in Kotlin, but I'm not sure I'm looking at the correct construct. Can anyone point me in the right direction, what are the terms I'm looking for called in Kt?