final case classHold[A](in: Pat[A], hold: Pat[Boolean] = true) extends Pattern[A] with Product with Serializable
A pattern that holds (and repeats) input values whenever hold is true.
With the default of constant true, the pattern will repeat the first
input element forever.
Linear Supertypes
Serializable, Serializable, Pattern[A], Pat[A], Product, Equals, AnyRef, Any
A pattern that holds (and repeats) input values whenever
hold
is true. With the default of constanttrue
, the pattern will repeat the first input element forever.