diff options
Diffstat (limited to 'docs/doc/match.html')
| -rw-r--r-- | docs/doc/match.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/doc/match.html b/docs/doc/match.html index 03da6ad6..dbf0b301 100644 --- a/docs/doc/match.html +++ b/docs/doc/match.html @@ -11,7 +11,7 @@ <span class='Number'>4</span> <span class='Function'>≢</span> <span class='Function'><</span><span class='Number'>4</span> 1 </pre> -<p>Match always gives the same result as <a href="arithmetic.html#comparisons">Equals</a> (<code><span class='Function'>=</span></code>) when both arguments are atoms, but the two functions are extended to arrays differently: while the pervasive Equals maps over array arguments to return an array of results, Match compares them in totality and always returns one boolean (it never gives an error). Match is the basis for BQN's <a href="search.html">search</a> and <a href="selfcmp.html">self-comparison</a> functions.</p> +<p>Match always gives the same result as <a href="arithmetic.html#comparisons">Equals</a> (<code><span class='Function'>=</span></code>) when both arguments are atoms, but the two functions are extended to arrays differently: while the pervasive Equals maps over array arguments to return an array of results, Match compares them in totality and always returns one boolean (it never gives an error). Match is the basis for BQN's <a href="search.html">search</a> and <a href="selfcmp.html">self-search</a> functions.</p> <a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ImFiYyIgPSAiYWNjIgoiYWJjIiDiiaEgImFjYyIKCiJhYmMiID0gImFiIiAgIyBNaXNtYXRjaGVkIHNoYXBlcwoiYWJjIiDiiaEgImFiIg==">↗️</a><pre> <span class='String'>"abc"</span> <span class='Function'>=</span> <span class='String'>"acc"</span> ⟨ 1 0 1 ⟩ <span class='String'>"abc"</span> <span class='Function'>≡</span> <span class='String'>"acc"</span> |
