2.5.22 • Published 5 years ago
@extra-iterable/move-within v2.5.22
Moves part of iterable within. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
Similar: copy, copyWithin, moveWithin.
This is part of package extra-iterable.
iterable.moveWithin(x, [j], [i], [I]);
// x: an iterable
// j: write index (0)
// i: read start index (0)
// I: read end index (X)const iterable = require("extra-iterable");
var x = [1, 2, 3, 4, 5, 6];
[...iterable.moveWithin(x, 0, 1, 3)];
// [ 2, 3, 1, 4, 5, 6 ] (2,3 to left)
[...iterable.moveWithin(x, 6, 3, 5)];
// [ 1, 2, 3, 6, 4, 5 ] (4,5 to right)References
2.5.22
5 years ago
2.5.21
5 years ago
2.5.20
5 years ago
2.5.18
5 years ago
2.5.17
5 years ago
2.5.14
5 years ago
2.5.13
6 years ago
2.5.11
6 years ago
2.5.12
6 years ago
2.5.10
6 years ago
2.5.9
6 years ago
2.5.8
6 years ago
2.5.7
6 years ago
2.5.6
6 years ago
2.5.5
6 years ago
2.5.4
6 years ago
2.5.0
6 years ago
2.5.2
6 years ago
2.5.1
6 years ago
2.5.3
6 years ago
2.4.50
6 years ago
2.4.51
6 years ago
2.4.49
6 years ago
2.4.48
6 years ago