Created
March 1, 2015 13:23
-
-
Save Tux/a1e61d22f31d30a5c8bf 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
method print (IO $io, *@fld) returns Bool { | |
my @f; | |
if (@fld.elems == 1 && @fld[0].^name ~~ /Array/) { | |
for @fld[0] -> $f { | |
("# ADD "~$f.perl).say; | |
@f.push ($f); | |
} | |
} | |
else { | |
@f = @fld; | |
} | |
#@f.perl.say; | |
self.combine (@f) or return False; | |
$io.print (self.string); | |
return True; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment