Skip to main content
Module

x/domain_functions/src/index.ts>sequence

Types and functions to make composition easy and safe
Latest
function sequence
import { sequence } from "https://deno.land/x/domain_functions@v3.0.0/src/index.ts";

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

Examples

import { mdf, sequence } from 'domain-functions'

const a = mdf(z.number())((aNumber) => String(aNumber)) const b = mdf(z.string())((aString) => aString === '1') const df = sequence(a, b) // ^? DomainFunction<[string, boolean]>