Skip to main content
7 events
when toggle format what by license comment
Mar 2, 2019 at 15:00 history tweeted twitter.com/StackMma/status/1101859868632326145
Feb 24, 2019 at 22:26 answer added Leonid Shifrin timeline score: 6
Feb 24, 2019 at 21:39 comment added user13892 This code appears to be pretty general already and once understood probably can be modified into SubPosition function that i want.
Feb 24, 2019 at 21:35 comment added user13892 I am looking for an extension of Position. Position[expr, pattern] gives the position of any pattern matched in the expr while Position[pattern, Verbatim[subPattern]] gives the position of any subPattern matched in the pattern. I want a SubPosition[expr, pattern, subPattern] which gives the position of any subPattern matched while matching pattern in expr. Once I understand this code I will try to make it work for any subPattern.
Feb 24, 2019 at 17:27 history edited Henrik Schumacher
edited tags; edited tags
Feb 24, 2019 at 17:27 comment added Henrik Schumacher Before we go into detail and explain a piece of code that was called "ugly and inefficient" by its very author, would you mind to tell us what your actual problem is? I suspect an XY-problem here because what Leonid tries to achieve there might be pretty well a rare border case...
Feb 24, 2019 at 17:02 history asked user13892 CC BY-SA 4.0