import { juxt } from "@thi.ng/compose/juxt" ; import type { Transducer , TxLike } from "./api.js" ; import { map } from "./map.js" ; import { step } from "./step.js" ; /**
 * Yields a new transducer which applies given transducers in parallel
 * (using  {@link @thi.ng/compose#(juxt:1)} &  step ) and produces
 * tuples of results.
 *
 *  remarks Use the  noop transducer for processing lanes which should
 * retain the original input values.
 *
 *  example param a export function multiplex < T , A > ( a ) ; export function multiplex < T , A , B > ( a , b ) ; export function multiplex < T , A , B , C > ( a , b , c ) ; export function multiplex < T , A , B , C , D > ( a , b , c , d ) ; export function multiplex < T , A , B , C , D , E > ( a , b , c , d , e ) ; export function multiplex < T , A , B , C , D , E , F > ( a , b , c , d , e , f ) ; export function multiplex < T , A , B , C , D , E , F , G > ( a , b , c , d , e , f , g ) ; export function multiplex < T , A , B , C , D , E , F , G , H > ( a , b , c , d , e , f , g , h ) ; export function multiplex ( ... args ) { return map ( juxt . apply ( null , < any > args . map ( step ) ) ) ; }