package keywords
Contains built-in domain-specific Keywords and their corresponding interpreters.
- Source
- package.scala
- Alphabetic
- By Inheritance
- keywords
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
final
case class
AutoClose[R <: AutoCloseable](open: () ⇒ R) extends AnyVal with Keyword[AutoClose[R], R] with Product with Serializable
Author:
杨博 (Yang Bo)
-
final
case class
Catch[Domain](failureHandler: (Throwable) ⇒ Domain) extends AnyVal with Keyword[Catch[Domain], Unit] with Product with Serializable
Author:
杨博 (Yang Bo)
-
final
case class
Each[Element](elements: Traversable[Element]) extends Keyword[Each[Element], Element] with Product with Serializable
Author:
杨博 (Yang Bo)
- final case class Fork[Element](elements: Traversable[Element]) extends AnyVal with Keyword[Fork[Element], Element] with Product with Serializable
-
sealed
case class
Hang[Value]() extends Keyword[Hang[Value], Value] with Product with Serializable
Author:
杨博 (Yang Bo)
- final case class Monadic[F[*], A](fa: F[A]) extends Keyword[Monadic[F, A], A] with Product with Serializable
-
final
case class
Scope[Domain, Value](continuation: !![Domain, Value]) extends AnyVal with Keyword[Scope[Domain, Value], Value] with Product with Serializable
Author:
杨博 (Yang Bo)
-
final
case class
Shift[Domain, Value](continuation: !![Domain, Value]) extends AnyVal with Keyword[Shift[Domain, Value], Value] with Product with Serializable
Author:
杨博 (Yang Bo)
-
final
case class
Yield[Element](element: Element) extends AnyVal with Keyword[Yield[Element], Unit] with Product with Serializable
Author:
杨博 (Yang Bo)
This
Yield
keyword must be put inside a function that returnsStream[Element]
orRaii[Stream[Element]]
, or it will not compile."def f(): Unit = !Yield(1)" shouldNot compile
Example:
Value Members
- object AutoClose extends Serializable
- object Catch extends Serializable
- object Each extends Serializable
- object Fork extends Serializable
- object Hang extends Serializable
- object Monadic extends Serializable
- object Scope extends Serializable
- object Shift extends LowPriorityShift0 with Serializable
- object Yield extends Serializable