Skip to content

Commit f5de044

Browse files
committed
removes inconsistencies in the wording used to capture conditions in the definitions of the set functions
1 parent c3fd077 commit f5de044

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/index.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9589,10 +9589,10 @@ <h5>Sum</h5>
95899589
<pre class="code nohighlight">numeric Sum(sequence S)</pre>
95909590
<p>L = Flatten(S)</p>
95919591
<p>Sum(S) = Sum(L)</p>
9592-
<p>Sum(L) = op:numeric-add(L<sub>1</sub>, Sum(L<sub>2..n</sub>)) when <a href="#defn_Card">Card</a>(L) &gt;
9592+
<p>Sum(L) = op:numeric-add(L<sub>1</sub>, Sum(L<sub>2..n</sub>)) if <a href="#defn_Card">Card</a>(L) &gt;
95939593
1<br>
9594-
Sum(L) = op:numeric-add(L<sub>1</sub>, 0) when <a href="#defn_Card">Card</a>(L) = 1<br>
9595-
Sum(L) = "0"^^xsd:integer when <a href="#defn_Card">Card</a>(L) = 0</p>
9594+
Sum(L) = op:numeric-add(L<sub>1</sub>, 0) if <a href="#defn_Card">Card</a>(L) = 1<br>
9595+
Sum(L) = "0"^^xsd:integer if <a href="#defn_Card">Card</a>(L) = 0</p>
95969596
<p>In this way, Sum( (1, 2, 3) ) = op:numeric-add(1, op:numeric-add(2,
95979597
op:numeric-add(3, 0))).</p>
95989598
</div>
@@ -9604,8 +9604,8 @@ <h5>Avg</h5>
96049604
<div class="defn">
96059605
<p><b>Definition: <span id="defn_aggAvg">Avg</span></b></p>
96069606
<pre class="code nohighlight">numeric Avg(sequence S)</pre>
9607-
<p>Avg(S) = "0"^^xsd:integer, where Count(S) = 0</p>
9608-
<p>Avg(S) = Sum(S) / Count(S), where Count(S) &gt; 0</p>
9607+
<p>Avg(S) = "0"^^xsd:integer if Count(S) = 0</p>
9608+
<p>Avg(S) = Sum(S) / Count(S) if Count(S) &gt; 0</p>
96099609
</div>
96109610
<p>For example, Avg([(1), (2), (3)]) = Sum([(1), (2), (3)])/Count([(1), (2), (3)]) = 6/3 = 2.</p>
96119611
</section>
@@ -9654,11 +9654,11 @@ <h5>GroupConcat</h5>
96549654
be the "space" character, unicode codepoint U+0020.</p>
96559655
<p>L = Flatten(S)</p>
96569656
<p>GroupConcat(S, scalarvals) = GroupConcat(L, scalarvals("separator"))</p>
9657-
<p>GroupConcat(L, sep) = "", where <a href="#defn_Card">Card</a>(L) = 0</p>
9658-
<p>GroupConcat(L, sep) = CONCAT("", L<sub>0</sub>), where
9657+
<p>GroupConcat(L, sep) = "" if <a href="#defn_Card">Card</a>(L) = 0</p>
9658+
<p>GroupConcat(L, sep) = CONCAT("", L<sub>0</sub>) if
96599659
<a href="#defn_Card">Card</a>(L) = 1</p>
96609660
<p>GroupConcat(L, sep) = CONCAT(L<sub>0</sub>, sep, GroupConcat(L<sub>1..n-1</sub>,
9661-
sep)), where <a href="#defn_Card">Card</a>(L) &gt; 1</p>
9661+
sep)) if <a href="#defn_Card">Card</a>(L) &gt; 1</p>
96629662
</div>
96639663
<p>For example, GroupConcat([("a"), ("b"), ("c")], {"separator" → "."}) = "a.b.c".</p>
96649664
</section>

0 commit comments

Comments
 (0)