Documentation for method subparse
Documentation for method subparse, assembled from the following types:
method subparse(, : = 'TOP', Capture() : = \(), Mu : = Mu, *)
Does exactly the same as method parse, except that cursor doesn't have to reach the end of the string to succeed. (That is, it doesn't have to match the whole string).
my = A.subparse('aaab', :rule<as>);say ~; # OUTPUT: «aaa␤»say .to; # OUTPUT: «3␤»