mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 07:00:37 +03:00
Removed put for arrays
This commit is contained in:
parent
7d9a0eb0c9
commit
2da8c7920e
1 changed files with 0 additions and 22 deletions
22
std/array.d
22
std/array.d
|
@ -441,28 +441,6 @@ if (is(typeof(A.init[0])) && isNarrowString!A && a[0].sizeof < 4)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
Implements the range interface primitive $(D put) for built-in
|
|
||||||
arrays. Due to the fact that nonmember functions can be called with
|
|
||||||
the first argument using the dot notation, $(D array.put(e)) is
|
|
||||||
equivalent to $(D put(array, e)).
|
|
||||||
|
|
||||||
Example:
|
|
||||||
----
|
|
||||||
void main()
|
|
||||||
{
|
|
||||||
int[] a = [ 1, 2, 3 ];
|
|
||||||
int[] b = a;
|
|
||||||
a.put(5);
|
|
||||||
assert(a == [ 2, 3 ]);
|
|
||||||
assert(b == [ 5, 2, 3 ]);
|
|
||||||
}
|
|
||||||
----
|
|
||||||
*/
|
|
||||||
alias std.range.put put;
|
|
||||||
//void put(T, E)(ref T[] a, E e) { assert(a.length); a[0] = e; a = a[1 .. $]; }
|
|
||||||
|
|
||||||
// overlap
|
// overlap
|
||||||
/*
|
/*
|
||||||
Returns the overlapping portion, if any, of two arrays. Unlike $(D
|
Returns the overlapping portion, if any, of two arrays. Unlike $(D
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue