Created
July 28, 2020 20:20
-
-
Save gfldex/1cbf85587e26beb8bbef465c5af4aff9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v6; | |
class Exitcode does Positional { | |
has @.captured handles <elems AT-POS EXISTS-POS iterator>; | |
} | |
my $ex = Exitcode.new: :captured(<abc def ghi>); | |
say $ex[1]; | |
say $ex ~~ /a/; | |
LEAVE slurp($*PROGRAM).say; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment