source: node_modules/ramda/es/pair.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 455 bytes
Line 
1import _curry2 from "./internal/_curry2.js";
2/**
3 * Takes two arguments, `fst` and `snd`, and returns `[fst, snd]`.
4 *
5 * @func
6 * @memberOf R
7 * @since v0.18.0
8 * @category List
9 * @sig a -> b -> (a,b)
10 * @param {*} fst
11 * @param {*} snd
12 * @return {Array}
13 * @see R.objOf, R.of
14 * @example
15 *
16 * R.pair('foo', 'bar'); //=> ['foo', 'bar']
17 */
18
19var pair =
20/*#__PURE__*/
21_curry2(function pair(fst, snd) {
22 return [fst, snd];
23});
24
25export default pair;
Note: See TracBrowser for help on using the repository browser.