---
layout: "default"
title: "Operator: |"
description: "Swift documentation for the '|' operator."
root: "/v2.1"
---

<code class="language-swift">infix operator | {
    associativity left
    precedence 140
}</code>

<h3>Declarations</h3>

<div class="declaration" id="func-bar_-int-rhs_-int">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-bar_-int-rhs_-int">func |(<wbr>_:<wbr> Int, rhs: Int)</a>
        
<div class="comment collapse" id="comment-func-bar_-int-rhs_-int"><div class="p">
 