---
keywords: ""
layout: "default"
description: "Swift documentation for 'SetAlgebra'"
root: "/v5.1"
title: "SetAlgebra"
---

<div class="intro-declaration"><code class="language-swift">protocol SetAlgebra</code></div><p>A type that provides mathematical set operations.</p>
<table class="standard"><tr><th id="inheritance">Inheritance</th><td><code class="inherits">Equatable, ExpressibleByArrayLiteral</code></td></tr><tr><th id="conforming-types">Conforming Types</th><td><code class="inherits">OptionSet, Set