Skip to main content
Module

x/fun/mod.ts>array.join

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

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>