Documentation for infix ff^
assembled from the following pages:
Language documentation: Operators §
From Operators
(Operators) infix ff^ §
sub infix:<ff^>(Mu , Mu )
Works like ff, except it does not return True
for items matching the stop condition (including items that first matched the start condition).
my = <A B C>;say if /A/ ff /C/ for ; # OUTPUT: «ABC» say if /A/ ff^ /C/ for ; # OUTPUT: «AB»
The sed-like version can be found in fff^.
This operator cannot be overloaded, as it's handled specially by the compiler.