diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-09-13 20:27:46 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-09-13 20:27:46 -0400 |
| commit | 0c57c8756379e44b0f567b011da5a93f0a13de97 (patch) | |
| tree | c02d170632e60c02fd9e137191b950851904081b /src | |
| parent | 80a3fe4874cef67475d6ac691ddd316b49715449 (diff) | |
Consistent capitalization for runtime error messages
Diffstat (limited to 'src')
| -rw-r--r-- | src/r.bqn | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -192,7 +192,7 @@ Join←(1==)◶⟨1,1-1×´(1==)⌜⟩◶{ }‿{ # Multidimensional n←≠z←⥊𝕩 ⋄ s←≢⌜z ⋄ d←≠0⊑s ⋄ r←=𝕩 - "∾𝕩: elements of 𝕩 must all have the same rank" ! 1×´(d=≠)⌜s + "∾𝕩: Elements of 𝕩 must all have the same rank" ! 1×´(d=≠)⌜s "∾𝕩: 𝕩 element rank must be at least argument rank" ! d≥r _s0←{s←𝕨⋄F←𝔽⋄{o←s⋄s F↩𝕩⋄o}⌜𝕩} sh←≢𝕩 ⋄ p←1 ⋄ i←j←<0 @@ -249,7 +249,7 @@ Windows←{ "𝕨↕𝕩: 𝕨 must have rank at most 1" ! 1≥=𝕨 r←≠𝕨↩Deshape 𝕨 𝕨{ - "𝕨↕𝕩: length of 𝕨 must be at most rank of 𝕩" ! r≤=𝕩 + "𝕨↕𝕩: Length of 𝕨 must be at most rank of 𝕩" ! r≤=𝕩 "𝕨↕𝕩: 𝕨 must consist of natural numbers" ! ×´Nat⌜𝕨 s←≢𝕩 l←(1+⊑⟜s-⊑⟜𝕨)⌜↕r @@ -268,7 +268,7 @@ _onAxes_←{ 𝕨F𝕩 }‿{ # Multiple axes "Multi-axis primitive: 𝕨 must have rank at most 1" ! 1≥=𝕨 - "Multi-axis primitive: length of 𝕨 must be at most rank of 𝕩" ! 𝕨≤○≠≢𝕩 + "Multi-axis primitive: Length of 𝕨 must be at most rank of 𝕩" ! 𝕨≤○≠≢𝕩 l←≠𝕨 ⋄ W←⊑⟜(⥊𝕨) 0{(W𝕨)F(1+𝕨)⊸𝕊˘⍟(𝕨<l-1)𝕩}⍟(0<l)𝕩 } @@ -365,7 +365,7 @@ Replicate ← IsArray∘⊣◶{ e←r←𝕨 ({e+↩r⋄1+𝕩}⍟{e=𝕨}˜`↕r×≠𝕩) ⊏ 𝕩 }‿{ - "𝕨/𝕩: lengths of components of 𝕨 must match 𝕩" ! 𝕨=○≠𝕩 + "𝕨/𝕩: Lengths of components of 𝕨 must match 𝕩" ! 𝕨=○≠𝕩 𝕨 Rep 𝕩 } _onAxes_ (1-0=≠) |
