/** * Returns a list of elements that exist in both array. The output maintains the * same order as the input. The inputs are treated as multi-sets/bags (multiple * copies of items are treated as unique items). * * @param data - The input items. * @param other - The items to compare against. * @signature * R.intersection(data, other) * @example * R.intersection([1, 2, 3], [2, 3, 5]); // => [2, 3] * R.intersection([1, 1, 2, 2], [1]); // => [1] * @dataFirst * @lazy * @category Array */ declare function intersection(data: ReadonlyArray, other: ReadonlyArray): Array; /** * Returns a list of elements that exist in both array. The output maintains the * same order as the input. The inputs are treated as multi-sets/bags (multiple * copies of items are treated as unique items). * * @param other - The items to compare against. * @signature * R.intersection(other)(data) * @example * R.pipe([1, 2, 3], R.intersection([2, 3, 5])); // => [2, 3] * R.pipe([1, 1, 2, 2], R.intersection([1])); // => [1] * @dataFirst * @lazy * @category Array */ declare function intersection(other: ReadonlyArray): (data: ReadonlyArray) => Array; export { intersection };