File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Sources/Patterns/Operations on Patterns Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 99/// Can be used to store patterns in arrays and non-generic variables.
1010public struct AnyPattern < Input: BidirectionalCollection > : Pattern where Input. Element: Hashable {
1111 @usableFromInline
12- let _instructions : ( inout Instructions ) throws -> Void
12+ let _instructions : ( inout ContiguousArray < Instruction < Input > > ) throws -> Void
1313
1414 @inlinable
1515 public func createInstructions( _ instructions: inout ContiguousArray < Instruction < Input > > ) throws {
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public struct RepeatPattern<Wrapped: Pattern>: Pattern {
3232 let repeatedInstructions = try wrapped. createInstructions ( )
3333 for _ in 0 ..< min { instructions. append ( contentsOf: repeatedInstructions) }
3434 if let max = max {
35- let optionalRepeatedInstructions = Instructions {
35+ let optionalRepeatedInstructions = ContiguousArray < Instruction < Input>> {
3636 $0. append ( . choice( offset: repeatedInstructions. count + 2 ) )
3737 $0. append ( contentsOf: repeatedInstructions)
3838 $0. append ( . commit)
You can’t perform that action at this time.
0 commit comments