Timeline for How to list all possible 3-tuples with entries of the 3 tuples from 2 different sets?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 6, 2020 at 9:40 | comment | added | user1066 | @PaulCommentary: Or, just for fun, (i) Range[4]//Outer[List, #, #, 4+#]&// Flatten[#,2]& (ii) Range[4]//Distribute[{#, #, 4+#},List]& | |
| Jul 5, 2020 at 22:31 | comment | added | PaulCommentary | This is not much of an addition to a good answer. Just a pipeline style, with even simpler function calls.Outer[List, Range[4], Range[4], Range[5, 8]] // Flatten // Partition[#, 3] & | |
| Jul 5, 2020 at 18:13 | comment | added | user1066 | (+1) In addition, if there is an Outer with Flatten, there is (usually) a Distribute with none: Distribute[{a,a,b}, List] | |
| Jul 5, 2020 at 17:56 | vote | accept | thinkingdude | ||
| Jul 5, 2020 at 17:53 | history | edited | kglr | CC BY-SA 4.0 | added 112 characters in body |
| Jul 5, 2020 at 17:41 | history | answered | kglr | CC BY-SA 4.0 |