Skip to main content
8 events
when toggle format what by license comment
May 24, 2020 at 14:23 comment added user1066 In version 12.1, SequenceReplace[bill, {-1, 1} :> Splice[{0, 1}]]
May 19, 2020 at 15:48 history edited Titus CC BY-SA 4.0
edited body
May 18, 2020 at 18:27 comment added CA Trevillian I posted a solution that is faster with a shorter Trace and does not use SequenceReplace (which is the obvious choice if it is applicable).
May 18, 2020 at 17:57 vote accept braaterAfrikaaner
May 18, 2020 at 16:57 comment added Alucard what's the reason for RuleDelayed and not Rule? there is no need to evaluate Sequence each time it is replaced, am i wrong?
May 18, 2020 at 16:28 history edited Titus CC BY-SA 4.0
added 107 characters in body
May 18, 2020 at 16:24 comment added Bob Hanlon Also SequenceReplace[bill, {-1, 1} :> Sequence[0, 1]]
May 18, 2020 at 16:07 history answered Titus CC BY-SA 4.0