Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

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>