Timeline for Nested permutations
Current License: CC BY-SA 3.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Aug 19, 2015 at 16:01 | comment | added | Mr.Wizard | @shrx I'd use a "skip rule" like {x_List :> x, x_ :> {x}}, or Except: x : Except[_List] :> {x} | |
| Aug 19, 2015 at 16:01 | vote | accept | shrx | ||
| Aug 19, 2015 at 15:58 | comment | added | shrx | Thanks. Even better with x_?(Head[#] =!= List &) -> {x}. | |
| Aug 19, 2015 at 15:57 | comment | added | Patrick Stevens | I must have been asleep, sorry. Fixed. | |
| Aug 19, 2015 at 15:56 | history | edited | Patrick Stevens | CC BY-SA 3.0 | added 2 characters in body |
| Aug 19, 2015 at 15:54 | comment | added | shrx | Doesn't work: Tuples::normal: Nonatomic expression expected at position {1,1} in Tuples[{1,{2,3},{4}}]. >> | |
| Aug 19, 2015 at 15:08 | comment | added | Patrick Stevens | The fix is trivial. Someone said it would be better to write the function rather than just to demonstrate its application, so I did. I've made the obvious fix. | |
| Aug 19, 2015 at 15:08 | history | edited | Patrick Stevens | CC BY-SA 3.0 | added 11 characters in body |
| Aug 19, 2015 at 13:58 | comment | added | shrx | Why did you edit your answer? Now it's less general as it only works if simple elements are integers. | |
| Aug 19, 2015 at 12:32 | comment | added | Patrick Stevens | Done. charactercharacter | |
| Aug 19, 2015 at 12:31 | history | edited | Patrick Stevens | CC BY-SA 3.0 | added 68 characters in body |
| Aug 19, 2015 at 11:36 | vote | accept | shrx | ||
| Aug 19, 2015 at 13:58 | |||||
| Aug 19, 2015 at 11:05 | history | answered | Patrick Stevens | CC BY-SA 3.0 |