Re: [m-users.] Cartesian product of two sets of things.
Volker Wysk <[email protected]>
| Newsgroups | gmane.comp.lang.mercury.general |
|---|---|
| Message-ID | <[email protected]> |
You're welcome. I'm not sure how efficient this is, though. You wanted to have maximum efficiency before, for your game... Cheers, Volker Am Montag, dem 09.10.2023 um 11:34 +0100 schrieb Sean Charles (emacstheviking): > Nice, I'm stealing that! I will adapt it, and of course your name will be carved in pixels in the ether in a comment in a game that nobody will ever see! > > Thanks Volker. > > :) > > > > On 9 Oct 2023, at 10:08, Volker Wysk <[email protected]> wrote: > > > > Am Montag, dem 09.10.2023 um 11:04 +0200 schrieb Volker Wysk: > > > :- pred cart_prod(set(T)::in, set(U)::in, set(pair(T, U))::out) is det. > > > > Oops, that should be: > > > > :- pred cart_prod(set(T)::in, set(U)::in, list(pair(T, U))::out) is det. > > > > Volker > > _______________________________________________ > > users mailing list > > [email protected] > > https://lists.mercurylang.org/listinfo/users > _______________________________________________ users mailing list [email protected] https://lists.mercurylang.org/listinfo/users