@@ -27,7 +27,7 @@ Methods as separate packages:
27
27
<br >
28
28
29
29
``` javascript
30
- const array = require (" extra-array" );
30
+ const array = require (' extra-array' );
31
31
// import * as array from "extra-array";
32
32
// import * as array from "https://unpkg.com/[email protected] /index.mjs"; (deno)
33
33
@@ -37,18 +37,18 @@ array.get(x, -1);
37
37
38
38
var x = [1 , 2 , 3 , 4 ];
39
39
array .swap (x, 0 , 1 );
40
- // [2, 1, 3, 4]
40
+ // → [2, 1, 3, 4]
41
41
42
42
var x = [1 , 2 , 3 , 4 ];
43
43
array .rotate (x, 1 );
44
- // [4, 1, 2, 3]
44
+ // → [4, 1, 2, 3]
45
45
46
46
var x = [1 , 3 , 5 , 7 ];
47
47
array .bsearch (x, 5 );
48
48
// 2 ^ found
49
49
50
50
[... array .permutations ([1 , 2 , 3 ])];
51
- // [
51
+ // → [
52
52
// [], [ 1 ],
53
53
// [ 2 ], [ 3 ],
54
54
// [ 1, 2 ], [ 1, 3 ],
@@ -108,12 +108,12 @@ array.bsearch(x, 5);
108
108
| [ isUnique] | Checks if there are no duplicate values. |
109
109
| [ isDisjoint] | Checks if arrays have no value in common. |
110
110
| |
111
- | [ value ] | Picks an arbitrary value. |
112
- | [ prefix ] | Picks an arbitrary prefix. |
113
- | [ infix ] | Picks an arbitrary infix. |
114
- | [ suffix ] | Picks an arbitrary suffix. |
115
- | [ subsequence ] | Picks an arbitrary subsequence. |
116
- | [ permutation ] | Picks an arbitrary permutation. |
111
+ | [ randomValue ] | Picks an arbitrary value. |
112
+ | [ randomPrefix ] | Picks an arbitrary prefix. |
113
+ | [ randomInfix ] | Picks an arbitrary infix. |
114
+ | [ randomSuffix ] | Picks an arbitrary suffix. |
115
+ | [ randomSubsequence ] | Picks an arbitrary subsequence. |
116
+ | [ randomPermutation ] | Picks an arbitrary permutation. |
117
117
| |
118
118
| [ isEqual] | Checks if two arrays are equal. |
119
119
| [ compare] | Compares two arrays. |
@@ -150,7 +150,7 @@ array.bsearch(x, 5);
150
150
[ group ] : https://github.com/nodef/extra-array/wiki/group
151
151
[ index ] : https://github.com/nodef/extra-array/wiki/index
152
152
[ indexRange ] : https://github.com/nodef/extra-array/wiki/indexRange
153
- [ infix ] : https://github.com/nodef/extra-array/wiki/infix
153
+ [ randomInfix ] : https://github.com/nodef/extra-array/wiki/infix
154
154
[ interleave ] : https://github.com/nodef/extra-array/wiki/interleave
155
155
[ intersection ] : https://github.com/nodef/extra-array/wiki/intersection
156
156
[ is ] : https://github.com/nodef/extra-array/wiki/is
@@ -161,8 +161,8 @@ array.bsearch(x, 5);
161
161
[ max ] : https://github.com/nodef/extra-array/wiki/max
162
162
[ min ] : https://github.com/nodef/extra-array/wiki/min
163
163
[ partition ] : https://github.com/nodef/extra-array/wiki/partition
164
- [ permutation ] : https://github.com/nodef/extra-array/wiki/permutation
165
- [ prefix ] : https://github.com/nodef/extra-array/wiki/prefix
164
+ [ randomPermutation ] : https://github.com/nodef/extra-array/wiki/permutation
165
+ [ randomPrefix ] : https://github.com/nodef/extra-array/wiki/prefix
166
166
[ range ] : https://github.com/nodef/extra-array/wiki/range
167
167
[ repeat ] : https://github.com/nodef/extra-array/wiki/repeat
168
168
[ reverse ] : https://github.com/nodef/extra-array/wiki/reverse
@@ -173,11 +173,11 @@ array.bsearch(x, 5);
173
173
[ sort ] : https://github.com/nodef/extra-array/wiki/sort
174
174
[ splice ] : https://github.com/nodef/extra-array/wiki/splice
175
175
[ split ] : https://github.com/nodef/extra-array/wiki/split
176
- [ subsequence ] : https://github.com/nodef/extra-array/wiki/subsequence
177
- [ suffix ] : https://github.com/nodef/extra-array/wiki/suffix
176
+ [ randomSubsequence ] : https://github.com/nodef/extra-array/wiki/subsequence
177
+ [ randomSuffix ] : https://github.com/nodef/extra-array/wiki/suffix
178
178
[ swap ] : https://github.com/nodef/extra-array/wiki/swap
179
179
[ union ] : https://github.com/nodef/extra-array/wiki/union
180
180
[ unique ] : https://github.com/nodef/extra-array/wiki/unique
181
181
[ zip ] : https://github.com/nodef/extra-array/wiki/zip
182
182
[ size ] : https://github.com/nodef/extra-array/wiki/size
183
- [ value ] : https://github.com/nodef/extra-array/wiki/value
183
+ [ randomValue ] : https://github.com/nodef/extra-array/wiki/value
0 commit comments