Skip to main content
Module

x/domain_functions/src/index.ts>cf.sequence

Decouple your business logic from your framework. With first-class type inference from end to end.
Go to Latest
function cf.sequence
import { cf } from "https://deno.land/x/domain_functions@v2.6.0/src/index.ts";
const { sequence } = cf;

Works like pipe but it will collect the output of every function in a tuple.

Examples

import { cf as C } from 'domain-functions'

const a = C.compose((aNumber: number) => String(aNumber)) const b = C.compose((aString: string) => aString === '1') const cf = C.sequence(a, b) // ^? Composable<(aNumber: number) => [string, boolean]>

Parameters

...fns: T & PipeArguments<T>