Talk:Cartesian product of two or more lists: Difference between revisions

From Rosetta Code
Content added Content deleted
 
Line 8: Line 8:


It returns a nested list of an incomplete product?
It returns a nested list of an incomplete product?

==[http://rosettacode.org/wiki/Cartesian_product_of_two_or_more_lists#Using_the_.27Applicative.27_abstraction Using the 'Applicative' abstraction]==
Is written in Python, but is in no way Pythonic and should not be used over the '''[https://rosettacode.org/wiki/Cartesian_product_of_two_or_more_lists#Using_itertools idiomatic itertools.product solution]'''.

The task wording specifically [https://rosettacode.org/mw/index.php?title=Cartesian_product_of_two_or_more_lists&oldid=248621 calls] for ''idiomatic'' rather than "alternative" solutions, (which the AA solution mistakenly states). <br>
--[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 16:54, 12 December 2020 (UTC)

Latest revision as of 16:55, 12 December 2020

Cartesian product task ?

Generating a Cartesian product can often be seen arising as a component of solutions to Rosetta Code tasks, but I can't immediately see a task in which the generation of Cartesian products (two lists or n-ary) is explicitly focal.

It seems to me like a task that might generate a useful reference and point of comparison Hout (talk) 15:08, 29 May 2017 (UTC)

The Java code doesn't work?

It returns a nested list of an incomplete product?

Using the 'Applicative' abstraction

Is written in Python, but is in no way Pythonic and should not be used over the idiomatic itertools.product solution.

The task wording specifically calls for idiomatic rather than "alternative" solutions, (which the AA solution mistakenly states).
--Paddy3118 (talk) 16:54, 12 December 2020 (UTC)