1 | "use strict";
|
---|
2 |
|
---|
3 | exports.__esModule = true;
|
---|
4 | exports["default"] = void 0;
|
---|
5 | var _ramda = require("ramda");
|
---|
6 | /**
|
---|
7 | * Returns the result of concatenating the given lists or strings.
|
---|
8 | *
|
---|
9 | * Note: R.concat expects both arguments to be of the same type, unlike
|
---|
10 | * the native Array.prototype.concat method.
|
---|
11 | * It will throw an error if you concat an Array with a non-Array value.
|
---|
12 | * Dispatches to the concat method of the second argument, if present.
|
---|
13 | *
|
---|
14 | * @func concatRight
|
---|
15 | * @memberOf RA
|
---|
16 | * @since {@link https://char0n.github.io/ramda-adjunct/1.11.0|v1.11.0}
|
---|
17 | * @category List
|
---|
18 | * @sig [a] -> [a] -> [a]
|
---|
19 | * @sig String -> String -> String
|
---|
20 | * @param {Array|String} firstList The first list
|
---|
21 | * @param {Array|String} secondList The second list
|
---|
22 | * @return {Array|String} A list consisting of the elements of `secondList`
|
---|
23 | * followed by the elements of `firstList`.
|
---|
24 | * @see {@link http://ramdajs.com/docs/#concat|R.concat}
|
---|
25 | * @example
|
---|
26 | *
|
---|
27 | * RA.concatRight('ABC', 'DEF'); //=> 'DEFABC'
|
---|
28 | * RA.concatRight([4, 5, 6], [1, 2, 3]); //=> [1, 2, 3, 4, 5, 6]
|
---|
29 | * RA.concatRight([], []); //=> []
|
---|
30 | */
|
---|
31 | var concatRight = (0, _ramda.flip)(_ramda.concat);
|
---|
32 | var _default = concatRight;
|
---|
33 | exports["default"] = _default; |
---|