Skip to content

Instantly share code, notes, and snippets.

@Tux
Created March 1, 2015 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tux/a1e61d22f31d30a5c8bf to your computer and use it in GitHub Desktop.
Save Tux/a1e61d22f31d30a5c8bf to your computer and use it in GitHub Desktop.
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