import { concat } from "https://deno.land/x/fun@v2.0.0-alpha.6/array.ts";
Given two arrays first and second, join them into a new array effectively doing [...first, ...second].
Examples
Example 1
Example 1
import * as A from "./array.ts";
import { pipe } from "./fn.ts";
const result = pipe(
A.range(3, 1),
A.concat(A.range(3, 3, -1)),
); // [1, 2, 3, 3, 2, 1]
Parameters
second: ReadonlyArray<A>