mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 01:31:45 +00:00
[RAMDA] - Moved tests to list category.
This commit is contained in:
+17
-17
@@ -1115,6 +1115,23 @@ interface Obj {
|
||||
R.addIndex(R.map)(squareEnds)([8, 5, 3, 0, 9]); // => [64, 5, 3, 0, 81]
|
||||
};
|
||||
|
||||
() => {
|
||||
const sampleList = ['a', 'b', 'c', 'd', 'e', 'f'];
|
||||
|
||||
R.move(0, 2, sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
|
||||
R.move(-1, 0, sampleList); // => ['f', 'a', 'b', 'c', 'd', 'e'] list rotation
|
||||
|
||||
const moveCurried1 = R.move(0, 2);
|
||||
moveCurried1(sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
|
||||
|
||||
const moveCurried2 = R.move(0);
|
||||
moveCurried2(2, sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
|
||||
|
||||
const moveCurried3 = R.move(0);
|
||||
const moveCurried4 = moveCurried3(2);
|
||||
moveCurried4(sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
|
||||
};
|
||||
|
||||
() => {
|
||||
R.none(R.isNaN, [1, 2, 3]); // => true
|
||||
R.none(R.isNaN, [1, 2, 3, NaN]); // => false
|
||||
@@ -2762,20 +2779,3 @@ class Why {
|
||||
() => {
|
||||
R.bind(console.log, console);
|
||||
};
|
||||
|
||||
() => {
|
||||
const sampleList = ['a', 'b', 'c', 'd', 'e', 'f'];
|
||||
|
||||
R.move(0, 2, sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
|
||||
R.move(-1, 0, sampleList); // => ['f', 'a', 'b', 'c', 'd', 'e'] list rotation
|
||||
|
||||
const moveCurried1 = R.move(0, 2);
|
||||
moveCurried1(sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
|
||||
|
||||
const moveCurried2 = R.move(0);
|
||||
moveCurried2(2, sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
|
||||
|
||||
const moveCurried3 = R.move(0);
|
||||
const moveCurried4 = moveCurried3(2);
|
||||
moveCurried4(sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user