Skip to main content
Module

x/fun/array.ts>join

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function join
import { join } from "https://deno.land/x/fun@v2.0.0/array.ts";

Given an array of arrays, flatten all inner arrays into a single external array.

Examples

Example 1

import * as A from "./array.ts";

const result = A.join(A.array(
  A.range(3),
  A.range(2),
  A.range(1),
)); // [0, 1, 2, 0, 1, 0]

Parameters

uaa: ReadonlyArray<ReadonlyArray<A>>

Returns

ReadonlyArray<A>