---
library: "bootstrap"
slug: "Combine"
name: "Combine"
ref: "Combine#5f8b"
hash: "sema:Combine#mh:SHA-256:5f8bc7d0ef143d4edeeea1ed81c4864a9cde7ded3b3eec2be25db3e9c3f51dc6"
type: "Primitives"
layer: "Infrastructure"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Combine"
---

# Combine

Binary merge operation

Infrastructure · Primitives

## Mechanism

Merge two same-typed values into one. Associative, with an identity element (Empty) — together with Closure this makes the operation a monoid.

## Invariants

- Associativity: (A + B) + C = A + (B + C)
- Closure: Result type must match Input type

## Where this came from

—

## Used by

- [Compose](https://semahash.org/vocabularies/bootstrap/patterns/Compose.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Combine#5f8b
- Hash: sema:Combine#mh:SHA-256:5f8bc7d0ef143d4edeeea1ed81c4864a9cde7ded3b3eec2be25db3e9c3f51dc6

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Combine
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Combine.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
