niknaks.arrays

- Refactored
This commit is contained in:
Tristan B. Velloza Kildaire 2024-04-27 15:43:58 +02:00
parent ee9d0cee7e
commit 45a6ca0f67
1 changed files with 10 additions and 10 deletions

View File

@ -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
*/