Timeline for What is the identity for Tuples?
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 9, 2019 at 6:00 | history | tweeted | twitter.com/StackMma/status/1148471963180044290 | ||
Jul 8, 2019 at 23:36 | comment | added | mjw | What you have above is almost correct (up to a typo). Anyway seems to produce what you want. 'AltTuples[{p,q}]` gives the same output as Tuples[p,q] when the first argument is a list with non-zero length. | |
Jul 8, 2019 at 23:34 | answer | added | mjw | timeline score: 0 | |
Jul 8, 2019 at 23:27 | comment | added | JAS | I corrected altTuples. Actually I want it to return Tuples[{{a, b, c}, {d, e, f}}]. I think Nothing is what I was looking for. | |
Jul 8, 2019 at 23:25 | history | edited | JAS | CC BY-SA 4.0 |
corrected the function altTuples
|
Jul 8, 2019 at 6:25 | history | became hot network question | |||
Jul 8, 2019 at 1:19 | comment | added | mjw |
How do you want your altTuples[] to behave when the length of $p$ is not zero? For example altTuples[{a, b, c}, {d, e, f}] returns Tuples[{a, b, c}, {d, e, f}] , probably not what you want.
|
|
Jul 7, 2019 at 23:21 | answer | added | kglr | timeline score: 4 | |
Jul 7, 2019 at 22:45 | answer | added | AccidentalFourierTransform | timeline score: 7 | |
Jul 7, 2019 at 22:36 | answer | added | Thies Heidecke | timeline score: 4 | |
Jul 7, 2019 at 22:20 | review | First posts | |||
Jul 8, 2019 at 1:19 | |||||
Jul 7, 2019 at 22:18 | history | asked | JAS | CC BY-SA 4.0 |