diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-01-22 22:20:53 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-01-22 22:20:53 -0500 |
| commit | f9b5c720e4502ee0848a032f642ceed468478791 (patch) | |
| tree | ee8396e6e4f2b07be47d98c9457edaff642070bf /docs/spec/inferred.html | |
| parent | 64ed742554609d75ad3e51f79f057ee532230a49 (diff) | |
Correct some misplaced primitives in the fill spec
Diffstat (limited to 'docs/spec/inferred.html')
| -rw-r--r-- | docs/spec/inferred.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/spec/inferred.html b/docs/spec/inferred.html index 9b11f276..e587655a 100644 --- a/docs/spec/inferred.html +++ b/docs/spec/inferred.html @@ -74,7 +74,7 @@ <p>In addition to the requirements below, the fill element for the value of a string literal is <code><span class='String'>' '</span></code>.</p> <h3 id="required-functions">Required functions</h3> <p>Combinators <code><span class='Function'>⊣⊢!</span><span class='Modifier'>˙˜´˝</span><span class='Modifier2'>∘○⊸⟜⊘◶⍟</span></code> do not affect fill element computation: if the combinator calls a function that computes a fill element, then that fill element must be retained if the result is passed to other functions or returned. <code><span class='Modifier2'>⍟</span></code> constructs arrays if its right operand is or contains arrays, and the fill elements of these arrays are not specified; converting <code><span class='Value'>𝕩</span></code> to a fill element is a reasonable choice in some cases but not others.</p> -<p>Arithmetic primitives—all valences of <code><span class='Function'>+-×÷⋆√⌊⌈|¬∧∨</span></code> and dyadic <code><span class='Function'><>≠=≤≥</span></code>—obtain their fill elements by applying to the fill elements of the arguments. If this is an error, there is no fill element; otherwise, the fill element is the result, with all numbers in it changed to <code><span class='Number'>0</span></code> and all characters changed to <code><span class='String'>' '</span></code>.</p> +<p>Arithmetic primitives—all valences of <code><span class='Function'>+-×÷⋆√⌊⌈|¬</span></code> and dyadic <code><span class='Function'>∧∨<>≠=≤≥</span></code>—obtain their fill elements by applying to the fill elements of the arguments. If this is an error, there is no fill element; otherwise, the fill element is the result, with all numbers in it changed to <code><span class='Number'>0</span></code> and all characters changed to <code><span class='String'>' '</span></code>.</p> <p>Fill elements for many primitives are given in the table below. The "Fill" column indicates the strategy used to compute the result's fill. Fields <code><span class='Number'>0</span></code>, <code><span class='Value'>𝕩</span></code>, <code><span class='Number'>0</span><span class='Function'>↑</span><span class='Value'>𝕩</span></code>, and <code><span class='Number'>0</span><span class='Modifier2'>⚇</span><span class='Number'>0</span><span class='Value'>𝕩</span></code> indicate the fill directly, while <code><span class='Function'>⊢</span></code> and <code><span class='Value'>∩</span></code> indicate that the fill is to be computed from the argument fills (if not all arguments have fills, then the fill element is unspecified). For <code><span class='Function'>⊢</span></code>, the fill element of the result is the fill element of <code><span class='Value'>𝕩</span></code>. For <code><span class='Value'>∩</span></code>, the fill is equal to the fill values for multiple arrays, provided that they are all equal (it's unspecified if they are not all equal). In the two argument case, these arrays are <code><span class='Value'>𝕨</span></code> and <code><span class='Value'>𝕩</span></code>. In the one-argument case, they are the elements of <code><span class='Value'>𝕩</span></code>; however, if <code><span class='Value'>𝕩</span></code> is empty, then the result's fill is the fill of the fill of <code><span class='Value'>𝕩</span></code>.</p> <table> <thead> @@ -88,14 +88,14 @@ <tbody> <tr> <td><code><span class='Function'>⊢</span></code></td> -<td><code><span class='Function'>⥊⌽⍉⊏≍∧∨</span></code></td> -<td><code><span class='Function'>⥊⌽⍉⊏↑↓↕/⍷</span></code></td> +<td><code><span class='Function'>⥊⌽⍉⊏≍∧∨⍷</span></code></td> +<td><code><span class='Function'>⥊⌽⍉⊏↑↓↕/</span></code></td> <td><code><span class='Function'>𝔽</span><span class='Modifier'>`</span></code></td> </tr> <tr> <td><code><span class='Number'>0</span></code></td> -<td><code><span class='Function'>≢/⍋⍒∊⍷⊐⊒</span></code></td> -<td><code><span class='Function'>⍋⍒∊⊐⊒</span></code></td> +<td><code><span class='Function'>≢/⍋⍒∊⊐⊒</span></code></td> +<td><code><span class='Function'>⍋⍒∊⍷⊐⊒</span></code></td> <td></td> </tr> <tr> |
