Permutations with repetitions: Difference between revisions
→Strict evaluation of the whole set
Line 1,578:
#
def main():
print(
Line 1,616:
{{Out}}
<pre>[[1, 1], [1, 2], [1, 3], [2, 1], [2, 2], [2, 3], [3, 1], [3, 2], [3, 3]]</pre>
===Lazy evaluation with a generator===
|