An alias to cpsApply.
An alias to cpsApply.
An alias to cpsApply.
(yield: Yield[Yield[Element]]).apply(handler)(dsl)
(yield: Yield[Yield[Element]]).cpsApply(handler)(dsl)
(yield: Yield[Yield[Element]]).element
(yield: Yield[Yield[Element]]).unary_!
Author:
杨博 (Yang Bo)
Yield keywords can be used together with other keywords.
This
Yieldkeyword must be put inside a function that returnsSeq[Element]orSeq[Element] !! ..., or it will not compile."def f(): Int = !Yield(1)" shouldNot compilecomprehension if you want to use traditional
forcomprehension instead of !-notation.