Closed lemmy closed 3 years ago
@muenchnerkindl Can you please review the (non-recursive) ReplaceAllSubSeqs
in https://github.com/tlaplus/CommunityModules/pull/52/commits/0f53203e8a52d46097979140e1885c30684f1ec4 ?
Thanks for the reviews!
By the way, I learned that Java and Dotnet handle the empty sequence differently in their replace* methods.
Question: Do we want
ReplaceFirstSubSeq(<<1>>, <<>>, <<>>)
to equal<<>>
or<<1>>
? The latter would be in line with e.g. Java'sString#replaceFirst
, and, thus, what users expect.Note: Not using
DOMAIN
in the definition of the ops to support strings. Module override will be added later.(Inspired by a private patch shared by @afonsonf with me)
Partially related: https://github.com/tlaplus/CommunityModules/issues/40