Timeline for How to Replace Part of a List according to its Position?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 2, 2020 at 8:51 | vote | accept | PureLine | ||
Mar 1, 2020 at 17:46 | history | edited | kglr | CC BY-SA 4.0 |
added 387 characters in body
|
Mar 1, 2020 at 16:23 | history | edited | kglr | CC BY-SA 4.0 |
added 203 characters in body
|
Mar 1, 2020 at 16:13 | history | edited | kglr | CC BY-SA 4.0 |
added 219 characters in body
|
Mar 1, 2020 at 16:13 | comment | added | PureLine |
Thanks. Inspired by your answer, I rewrite it as my new solution: stateEncodeRule = {{single_} :> {s}, {begin_, middle__, end_} :> {1, Sequence @@ ConstantArray[2, Length[{middle}]], 3}}; And I am waiting for any other different solution.
|
|
Mar 1, 2020 at 16:07 | history | answered | kglr | CC BY-SA 4.0 |