Inherited from Serializable
Inherited by implicit conversion implicitYield from
Yield[Element] to Yield[Yield[Element]]
Inherited by implicit conversion any2stringadd from
Yield[Element] to any2stringadd[Yield[Element]]
Inherited by implicit conversion StringFormat from
Yield[Element] to StringFormat[Yield[Element]]
Inherited by implicit conversion Ensuring from
Yield[Element] to Ensuring[Yield[Element]]
Inherited by implicit conversion ArrowAssoc from
Yield[Element] to ArrowAssoc[Yield[Element]]
Author:
杨博 (Yang Bo)
Yield keywords can be used together with other keywords.
This
Yield
keyword must be put inside a function that returnsSeq[Element]
orSeq[Element] !! ...
, or it will not compile."def f(): Int = !Yield(1)" shouldNot compile
comprehension if you want to use traditional
for
comprehension instead of !-notation.