Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.34 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.      method merge_rows(@rows) {
  2.          my @result = @rows[0].list;
  3.          say @result.perl;
  4.          say @rows.perl;
  5.          for 1..@rows.elems {
  6.              for @rows[$_].kv -> $k, $v {
  7.                  say "Adding '$v' to ", @result[$k];
  8.                  @result[$k] ~= ' ' ~ $v;
  9.              }
  10.          }
  11.          return @result;
  12.      }