add hw2
This commit is contained in:
		
							
								
								
									
										27
									
								
								node_modules/ramda/es/prepend.js
									
									
									
										generated
									
									
										vendored
									
									
										Executable file
									
								
							
							
						
						
									
										27
									
								
								node_modules/ramda/es/prepend.js
									
									
									
										generated
									
									
										vendored
									
									
										Executable file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| import _concat from "./internal/_concat.js"; | ||||
| import _curry2 from "./internal/_curry2.js"; | ||||
| /** | ||||
|  * Returns a new list with the given element at the front, followed by the | ||||
|  * contents of the list. | ||||
|  * | ||||
|  * @func | ||||
|  * @memberOf R | ||||
|  * @since v0.1.0 | ||||
|  * @category List | ||||
|  * @sig a -> [a] -> [a] | ||||
|  * @param {*} el The item to add to the head of the output list. | ||||
|  * @param {Array} list The array to add to the tail of the output list. | ||||
|  * @return {Array} A new array. | ||||
|  * @see R.append | ||||
|  * @example | ||||
|  * | ||||
|  *      R.prepend('fee', ['fi', 'fo', 'fum']); //=> ['fee', 'fi', 'fo', 'fum'] | ||||
|  */ | ||||
|  | ||||
| var prepend = | ||||
| /*#__PURE__*/ | ||||
| _curry2(function prepend(el, list) { | ||||
|   return _concat([el], list); | ||||
| }); | ||||
|  | ||||
| export default prepend; | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik