mirror of https://github.com/deavmi/niknaks
parent
ee9d0cee7e
commit
45a6ca0f67
|
@ -349,16 +349,6 @@ public T[] shiftIntoRightwards(T)(T[] array, size_t position, bool shrink = fals
|
|||
return shiftInto(array, position, true, shrink);
|
||||
}
|
||||
|
||||
/**
|
||||
* Leftwards shifting into
|
||||
*
|
||||
* See_Also: `shiftInto`
|
||||
*/
|
||||
public T[] shiftIntoLeftwards(T)(T[] array, size_t position, bool shrink = false)
|
||||
{
|
||||
return shiftInto(array, position, false, shrink);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the rightwards shifting
|
||||
*/
|
||||
|
@ -414,6 +404,16 @@ unittest
|
|||
assert(numbas == [1, 2]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Leftwards shifting into
|
||||
*
|
||||
* See_Also: `shiftInto`
|
||||
*/
|
||||
public T[] shiftIntoLeftwards(T)(T[] array, size_t position, bool shrink = false)
|
||||
{
|
||||
return shiftInto(array, position, false, shrink);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the leftwards shifting
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue