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.
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.