Avatar
omochimetaru 3/24/2022 2:50 AM
public static func buildPartialBlock<W0, W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9)> where R0.Output == W0, R1.Output == (W1, C0, C1, C2, C3, C4, C5, C6, C7, C8, C9) { .init(node: accumulated.regex.root.appending(next.regex.root)) } ↑ここまでは左側0個 (edited)
2:50 AM
public static func buildPartialBlock<W0, W1, C0, C1, R0: RegexComponent, R1: RegexComponent>( accumulated: R0, next: R1 ) -> Regex<(Substring, C0, C1)> where R0.Output == (W0, C0), R1.Output == (W1, C1) { .init(node: accumulated.regex.root.appending(next.regex.root)) } ↑ここからは左側1個
2:50 AM
An early experimental general-purpose pattern matching engine for Swift. - swift-experimental-string-processing/Variadics.swift at main · apple/swift-experimental-string-processing