lcartesian-map ( list quot: ( elt1 elt2 -- newelt ) -- result )
Lazy lists ยป Combinators for manipulating lazy lists

Prev:lfrom-by ( n quot: ( n -- o ) -- result )
Next:lcartesian-map* ( list guards quot: ( elt1 elt2 -- newelt ) -- result )


lista list of lists
quota quotation with stack effect ( elt1 elt2 -- newelt )

resultthe resulting list

Word description
Get the cartesian product of the lists in list and call quot call with each element from the cartesian product on the stack, the result of which is returned in the final list.

See also
leach, foldl, lmap-lazy, ltake, lfilter, lappend-lazy, lfrom, lfrom-by, lconcat, lcartesian-product, lcartesian-product*, lcartesian-map*, lmerge, lwhile, luntil