-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[API Proposal] Array CircularlyShifted array function (#881)
I recently needed that and was surprised that in the reach pool of built-in array functions there was no rotation function (rotate left or right). This PR adds a `Rotated` function which performs just that. It follows the pattern of `Padded` function, in that a positive step indicates rotation right, and negative indicates a rotation left. Hope this makes sense.
- Loading branch information
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters