Open orbisvicis opened 10 years ago
Alternatively provide a construct (builtin) to invert a match (regex or lens). For example:
let lns = record | (invert record) . (del /.*/ "")
I assume it would be inherently zero-width.
Alternatively provide if elif else
construct.
To be fair, regex subtraction provides a limited form of inverted matching (non-zero-width negative lookahead). Unfortunately regex subtraction does not seem capable of handling Inexpressible Language.
Greedy or Leftmost versions, as suggested by Greedy disambiguation and in solution to Inexpressible Language: