What does $0 and $1 mean in Swift Closures?
<pre><code>let sortedNumbers = numbers.sort { $0 &gt; $1 }
print(sortedNumbers)
</code></pre>

<p>Can anyone explain, what <code>$0</code> and <code>$1</code> means in swift?</p>

<p>More Sample</p>

<pre><code>array.forEach {
    actions.append($0)
}
</code></pre>