You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
455 B

4 years ago
  1. import _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. var pair =
  19. /*#__PURE__*/
  20. _curry2(function pair(fst, snd) {
  21. return [fst, snd];
  22. });
  23. export default pair;