final case class Yield[Element](element: Element) extends AnyVal with Keyword[Yield[Element], Unit] with Product with Serializable
Author:
杨博 (Yang Bo)
- Source
- Yield.scala
This
Yield
keyword must be put inside a function that returnsStream[Element]
orStream[Element] !! ...
, or it will not compile."def f(): Int = !Yield(1)" shouldNot compile
- Alphabetic
- By Inheritance
- Yield
- Serializable
- Serializable
- Product
- Equals
- Keyword
- AnyVal
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Yield(element: Element)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- def +(other: String): String
- def ->[B](y: B): (Yield[Element], B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def apply[Domain](handler: (Unit) ⇒ Domain)(implicit dsl: Dsl[Yield[Element], Domain, Unit]): Domain
- Definition Classes
- Keyword
- Annotations
- @inline()
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def cpsApply[Domain](handler: (Unit) ⇒ Domain)(implicit dsl: Dsl[Yield[Element], Domain, Unit]): Domain
- Definition Classes
- Keyword
- Annotations
- @inline()
- val element: Element
- def ensuring(cond: (Yield[Element]) ⇒ Boolean, msg: ⇒ Any): Yield[Element]
- def ensuring(cond: (Yield[Element]) ⇒ Boolean): Yield[Element]
- def ensuring(cond: Boolean, msg: ⇒ Any): Yield[Element]
- def ensuring(cond: Boolean): Yield[Element]
- def formatted(fmtstr: String): String
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def unary_!: Unit
- Definition Classes
- Keyword
- Annotations
- @shift() @compileTimeOnly("This method requires the compiler plugin: `addCompilerPlugin(\"com.thoughtworks.dsl\" %% \"compilerplugins-bangnotation\" % \"latest.release\")` and must only be called inside a code block annotated as `@reset`.")
- def →[B](y: B): (Yield[Element], B)