Skip to content

Instantly share code, notes, and snippets.

@tadzik
Created July 5, 2011 19:03
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 tadzik/1065588 to your computer and use it in GitHub Desktop.
Save tadzik/1065588 to your computer and use it in GitHub Desktop.
method merge_rows(@rows) {
my @result = @rows[0].list;
say @result.perl;
say @rows.perl;
for 1..@rows.elems {
for @rows[$_].kv -> $k, $v {
say "Adding '$v' to ", @result[$k];
@result[$k] ~= ' ' ~ $v;
}
}
return @result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment