@@ -636,7 +636,7 @@ array of the occurrences and then selecting its top items, and also
636636requires less memory (`largestPartialIntersection` builds its
637637result directly in `tgt` and requires no extra memory).
638638
639- If at least one of the ranges is a multiset, then all occurences
639+ If at least one of the ranges is a multiset, then all occurrences
640640of a duplicate element are taken into account. The result is
641641equivalent to merging all ranges and picking the most frequent
642642`tgt.length` elements.
@@ -714,7 +714,7 @@ import std.algorithm.sorting : SortOutput; // FIXME
714714Similar to `largestPartialIntersection`, but associates a weight
715715with each distinct element in the intersection.
716716
717- If at least one of the ranges is a multiset, then all occurences
717+ If at least one of the ranges is a multiset, then all occurrences
718718of a duplicate element are taken into account. The result
719719is equivalent to merging all input ranges and picking the highest
720720`tgt.length`, weight-based ranking elements.
@@ -1063,7 +1063,7 @@ ranges must have a common type.
10631063
10641064
10651065In the case of multisets, considering that element `a` appears `x`
1066- times in `r1` and `y` times and `r2`, the number of occurences
1066+ times in `r1` and `y` times and `r2`, the number of occurrences
10671067of `a` in the resulting range is going to be `x-y` if x > y or 0 otherwise.
10681068
10691069Params:
@@ -1188,8 +1188,8 @@ $(REF_ALTTEXT input ranges, isInputRange, std,range,primitives)
11881188types of the ranges must have a common type.
11891189
11901190In the case of multisets, the range with the minimum number of
1191- occurences of a given element, propagates the number of
1192- occurences of this element to the resulting range.
1191+ occurrences of a given element, propagates the number of
1192+ occurrences of this element to the resulting range.
11931193
11941194Params:
11951195 less = Predicate the given ranges are sorted by.
@@ -1359,9 +1359,9 @@ ranges must have a common type.
13591359
13601360If both ranges are sets (without duplicated elements), the resulting
13611361range is going to be a set. If at least one of the ranges is a multiset,
1362- the number of occurences of an element `x` in the resulting range is `abs(a-b)`
1363- where `a` is the number of occurences of `x` in `r1`, `b` is the number of
1364- occurences of `x` in `r2`, and `abs` is the absolute value.
1362+ the number of occurrences of an element `x` in the resulting range is `abs(a-b)`
1363+ where `a` is the number of occurrences of `x` in `r1`, `b` is the number of
1364+ occurrences of `x` in `r2`, and `abs` is the absolute value.
13651365
13661366If both arguments are ranges of L-values of the same type then
13671367`SetSymmetricDifference` will also be a range of L-values of
0 commit comments