How to use the dec function from ramda
Find comprehensive JavaScript ramda.dec code examples handpicked from public code repositorys.
1699 1700 1701 1702 1703 1704 1705 1706 1707 1708
* @param {Number} n * @return {Number} * @see R.inc * @example * * R.dec(42); //=> 41 */ var dec = add(-1); /**
0
0
0
+ 35 other calls in file
GitHub: VesaLahd/aoc2022
80 81 82 83 84 85 86 87 88 89 90
R.reject(R.compose(isBlocked, R.last)), R.converge(R.zip, [R.identity, R.map(R.nth(R.__, r))]), R.converge(Array.of, [R.dec, R.inc]), )(startPoint[0]) if (!nextDropX) return coordinatesToIndex([startPoint[0], R.dec(R.head(blocked))]) return dropSand(cave, [R.head(nextDropX), R.dec(R.head(blocked))]) }
0
0
0
+ 5 other calls in file
ramda.clone is the most popular function in ramda (30311 examples)