Skip to content

!(pattern:)

kareman edited this page Jul 6, 2020 · 3 revisions

!(pattern:)

Will only succeed if the following pattern fails. Does not consume any input.

@inlinable public prefix func !<P: Pattern>(pattern: P) -> NotPattern<P>

!(pattern:)

Will only succeed if the following pattern fails. Does not consume any input.

@inlinable public prefix func !(pattern: Literal) -> NotPattern<Literal>

Clone this wiki locally