<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/RegexBuilder/AlternationBuilder/buildPartialBlock(accumulated:next:)-8pz3c",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RegexBuilder"
    ],
    "preciseIdentifier" : "s:12RegexBuilder011AlternationB0V17buildPartialBlock11accumulated4nextAA8ChoiceOfVySs_q_q0_q1_q2_tGq3__q4_t17_StringProcessing0A9ComponentR3_AjKR4_x_q_q0_q1_q2_t0A6OutputRt3_r5_lFZ"
  },
  "title" : "buildPartialBlock(accumulated:next:)"
}
-->

# buildPartialBlock(accumulated:next:)

```
static func buildPartialBlock<W0, C1, C2, C3, C4>(accumulated: some RegexComponent, next: some RegexComponent) -> ChoiceOf<(Substring, C1, C2, C3, C4)>
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)