Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions std/array.d
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,8 @@ range, which must be a range of tuples (Key, Value). Returns a null associative
array reference when given an empty range.
Duplicates: Associative arrays have unique keys. If r contains duplicate keys,
then the result will contain the value of the last pair for that key in r.
See_Also: $(XREF typecons, Tuple)
See_Also: $(REF Tuple, std, typecons)
*/

auto assocArray(Range)(Range r)
if (isInputRange!Range)
{
Expand Down Expand Up @@ -1247,7 +1246,7 @@ pure nothrow bool sameTail(T)(in T[] lhs, in T[] rhs)
/********************************************
Returns an array that consists of $(D s) (which must be an input
range) repeated $(D n) times. This function allocates, fills, and
returns a new array. For a lazy version, refer to $(XREF range, repeat).
returns a new array. For a lazy version, refer to $(REF repeat, std, range).
*/
ElementEncodingType!S[] replicate(S)(S s, size_t n) if (isDynamicArray!S)
{
Expand Down Expand Up @@ -1327,10 +1326,10 @@ delimiter. Runs of whitespace are merged together (no empty words are produced).
$(D @safe), $(D pure) and $(D CTFE)-able.

See_Also:
$(XREF_PACK algorithm,iteration,splitter) for a version that splits using any
$(REF splitter, std, algorithm, iteration) for a version that splits using any
separator.

$(XREF regex, splitter) for a version that splits using a regular
$(REF splitter, std, regex) for a version that splits using a regular
expression defined separator.
+/
S[] split(S)(S s) @safe pure
Expand Down Expand Up @@ -1420,7 +1419,7 @@ unittest
}

/++
Alias for $(XREF_PACK algorithm,iteration,_splitter).
Alias for $(REF _splitter, std, algorithm, iteration).
+/
deprecated("Please use std.algorithm.iteration.splitter instead.")
alias splitter = std.algorithm.iteration.splitter;
Expand All @@ -1429,7 +1428,7 @@ alias splitter = std.algorithm.iteration.splitter;
Eagerly splits $(D range) into an array, using $(D sep) as the delimiter.

The _range must be a
$(XREF_PACK_NAMED _range,primitives,isForwardRange,forward _range).
$(REF_ALTTEXT forward _range, isForwardRange, std, _range, primitives).
The separator can be a value of the same type as the elements in $(D range)
or it can be another forward _range.

Expand All @@ -1448,7 +1447,7 @@ alias splitter = std.algorithm.iteration.splitter;
An array containing the divided parts of $(D range).

See_Also:
$(XREF_PACK algorithm,iteration,splitter) for the lazy version of this
$(REF splitter, std, algorithm, iteration) for the lazy version of this
function.
+/
auto split(Range, Separator)(Range range, Separator sep)
Expand Down Expand Up @@ -1548,7 +1547,7 @@ private enum bool hasCheapIteration(R) = isArray!R;
an allocated array of Elements

See_Also:
$(XREF_PACK algorithm,iteration,joiner)
$(REF joiner, std, algorithm, iteration)
+/
ElementEncodingType!(ElementType!RoR)[] join(RoR, R)(RoR ror, R sep)
if(isInputRange!RoR &&
Expand Down