[m-users.] Cartesian product of two sets of things.

Volker Wysk post at volker-wysk.de
Mon Oct 9 21:45:19 AEDT 2023


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 <post at volker-wysk.de> 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
> > users at lists.mercurylang.org
> > https://lists.mercurylang.org/listinfo/users
> 



More information about the users mailing list