Skip to content

Commit dedb4d0

Browse files
committed
removes inconsistencies in how the elements of sequences/lists are indexed in the definitions of the set functions, now the indexes consistently starts at 1
1 parent 80fb3c5 commit dedb4d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9621,7 +9621,7 @@ <h5>Min</h5>
96219621
<p>L = Flatten(S)</p>
96229622
<p>Min(S) = Min(L)</p>
96239623
<p>The flattened list L of values is ordered as per the <code>ORDER BY ASC</code> clause.</p>
9624-
<p>Min(L) = L<sub>0</sub> if <a href="#defn_Card">Card</a>(L) > 0<br>
9624+
<p>Min(L) = L<sub>1</sub> if <a href="#defn_Card">Card</a>(L) > 0<br>
96259625
Min(L) = error if <a href="#defn_Card">Card</a>(L) = 0</p>
96269626
</div>
96279627
</section>
@@ -9637,7 +9637,7 @@ <h5>Max</h5>
96379637
<p>L = Flatten(S)</p>
96389638
<p>Max(S) = Max(L)</p>
96399639
<p>The flattened list L of values is ordered as per the <code>ORDER BY DESC</code> clause.</p>
9640-
<p>Max(L) = L<sub>0</sub> if <a href="#defn_Card">Card</a>(L) > 0<br>
9640+
<p>Max(L) = L<sub>1</sub> if <a href="#defn_Card">Card</a>(L) > 0<br>
96419641
Max(L) = error if <a href="#defn_Card">Card</a>(L) = 0</p>
96429642
</div>
96439643
</section>
@@ -9657,9 +9657,9 @@ <h5>GroupConcat</h5>
96579657
<p>L = Flatten(S)</p>
96589658
<p>GroupConcat(S, scalarvals) = GroupConcat(L, |separator|)</p>
96599659
<p>GroupConcat(L, sep) = "" if <a href="#defn_Card">Card</a>(L) = 0</p>
9660-
<p>GroupConcat(L, sep) = CONCAT("", L<sub>0</sub>) if
9660+
<p>GroupConcat(L, sep) = CONCAT("", L<sub>1</sub>) if
96619661
<a href="#defn_Card">Card</a>(L) = 1</p>
9662-
<p>GroupConcat(L, sep) = CONCAT(L<sub>0</sub>, sep, GroupConcat(L<sub>1..n-1</sub>,
9662+
<p>GroupConcat(L, sep) = CONCAT(L<sub>1</sub>, sep, GroupConcat(L<sub>2..n</sub>,
96639663
sep)) if <a href="#defn_Card">Card</a>(L) &gt; 1</p>
96649664
</div>
96659665
<p>For example, GroupConcat([("a"), ("b"), ("c")], {"separator" → "."}) = "a.b.c".</p>

0 commit comments

Comments
 (0)