add hw2
This commit is contained in:
		
							
								
								
									
										33
									
								
								node_modules/ramda/es/aperture.js
									
									
									
										generated
									
									
										vendored
									
									
										Executable file
									
								
							
							
						
						
									
										33
									
								
								node_modules/ramda/es/aperture.js
									
									
									
										generated
									
									
										vendored
									
									
										Executable file
									
								
							| @@ -0,0 +1,33 @@ | ||||
| import _aperture from "./internal/_aperture.js"; | ||||
| import _curry2 from "./internal/_curry2.js"; | ||||
| import _dispatchable from "./internal/_dispatchable.js"; | ||||
| import _xaperture from "./internal/_xaperture.js"; | ||||
| /** | ||||
|  * Returns a new list, composed of n-tuples of consecutive elements. If `n` is | ||||
|  * greater than the length of the list, an empty list is returned. | ||||
|  * | ||||
|  * Acts as a transducer if a transformer is given in list position. | ||||
|  * | ||||
|  * @func | ||||
|  * @memberOf R | ||||
|  * @since v0.12.0 | ||||
|  * @category List | ||||
|  * @sig Number -> [a] -> [[a]] | ||||
|  * @param {Number} n The size of the tuples to create | ||||
|  * @param {Array} list The list to split into `n`-length tuples | ||||
|  * @return {Array} The resulting list of `n`-length tuples | ||||
|  * @see R.transduce | ||||
|  * @example | ||||
|  * | ||||
|  *      R.aperture(2, [1, 2, 3, 4, 5]); //=> [[1, 2], [2, 3], [3, 4], [4, 5]] | ||||
|  *      R.aperture(3, [1, 2, 3, 4, 5]); //=> [[1, 2, 3], [2, 3, 4], [3, 4, 5]] | ||||
|  *      R.aperture(7, [1, 2, 3, 4, 5]); //=> [] | ||||
|  */ | ||||
|  | ||||
| var aperture = | ||||
| /*#__PURE__*/ | ||||
| _curry2( | ||||
| /*#__PURE__*/ | ||||
| _dispatchable([], _xaperture, _aperture)); | ||||
|  | ||||
| export default aperture; | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik