# Faq - How does yield work? - Scala Documentation

**URL:** <https://users.scala-lang.org/t/faq-how-does-yield-work-scala-documentation/1216>\
**Category:** Documentation\
**Created:** [July 24, 2017, 10:50am UTC](https://users.scala-lang.org/t/faq-how-does-yield-work-scala-documentation/1216 "2017-07-24T10:50:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![travissarles](https://users.scala-lang.org/letter_avatar_proxy/v4/letter/t/47e85d/32.png) [@travissarles](https://users.scala-lang.org/u/travissarles)\
**Post date:** [July 24, 2017, 10:50am UTC](https://users.scala-lang.org/t/faq-how-does-yield-work-scala-documentation/1216/1 "2017-07-24T10:50:09Z")

</div>

Though there’s a `yield` in other languages such as Python and Ruby, Scala’s `yield` does something very different from them. In Scala, `yield` is part of for comprehensions – a generalization of Ruby and Python’s list-comprehensions.

* * *
This is a companion discussion topic for the original entry at [http://docs.scala-lang.org//tutorials/FAQ/yield.html](http://docs.scala-lang.org//tutorials/FAQ/yield.html)
