-
Notifications
You must be signed in to change notification settings - Fork 1
OrPattern
kareman edited this page Aug 13, 2020
·
4 revisions
A pattern which first tries the first pattern,
if that fails it tries the second pattern from the same position.
public struct OrPattern<First: Pattern, Second: Pattern>: Pattern where First.Input == Second.Inputpublic typealias Input = First.Input@inlinable init(_ first: First, or second: Second)let first: Firstlet second: Secondvar description: String@inlinable public func createInstructions(_ instructions: inout ContiguousArray<Instruction<Input>>) throwsGenerated at 2020-08-23T12:56:49+0000 using swift-doc 1.0.0-beta.3.