mirror of https://github.com/deavmi/niknaks
Compare commits
4 Commits
4b0f4a15b7
...
ba149357e5
Author | SHA1 | Date |
---|---|---|
Tristan B. Velloza Kildaire | ba149357e5 | |
Tristan B. Velloza Kildaire | 943a16beb6 | |
Tristan B. Velloza Kildaire | 6b12529ec3 | |
Tristan B. Velloza Kildaire | 930fa1ace5 |
|
@ -455,6 +455,17 @@ unittest
|
|||
assert(numbas == [1, 2]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes the element at the
|
||||
* provided position in the
|
||||
* given array
|
||||
*
|
||||
* Params:
|
||||
* array = the array
|
||||
* position = position of
|
||||
* element to remove
|
||||
* Returns: the array
|
||||
*/
|
||||
public T[] removeResize(T)(T[] array, size_t position)
|
||||
{
|
||||
return array.shiftInto(position, false, true);
|
||||
|
|
Loading…
Reference in New Issue