---
layout: "default"
title: "Operator: ~="
description: "Swift documentation for the '~=' operator."
root: "/v2.2"
---

<code class="language-swift">infix operator ~= {
    associativity none
    precedence 130
}</code>

<h3>Declarations</h3>

<div class="declaration" id="func-tildeeq-i_-forwardindextype-where-i_-comparable_-range-i-value_-i">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-tildeeq-i_-forwardindextype-where-i_-comparable_-range-i-value_-i">func <wbr>~= &lt;I :<wbr> Forwar