final case classGate[A](in: Pat[A], gate: Pat[Boolean]) extends Pattern[A] with Product with Serializable
A pattern that filters elements on an in input pattern based on a gate predicate.
Whenever gate is true, the input element is passed to output, otherwise it is dropped.
Linear Supertypes
Serializable, Serializable, Pattern[A], Pat[A], Product, Equals, AnyRef, Any
A pattern that filters elements on an
in
input pattern based on agate
predicate. Whenevergate
istrue
, the input element is passed to output, otherwise it is dropped.