import { sequence } from "https://deno.land/x/domain_functions@v3.0.0/src/domain-functions.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'
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]>
Parameters
...fns: Fns