Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p6.p6 Secret

Created July 17, 2018 15:38
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 zoffixznet/73f1cb0b0ae63e46de8fc14b8ae753f3 to your computer and use it in GitHub Desktop.
Save zoffixznet/73f1cb0b0ae63e46de8fc14b8ae753f3 to your computer and use it in GitHub Desktop.
my @line;
for 'foo.txt'.IO.slurp.lines {
my @w = .words;
my int $n = @w.shift.Int; @w.shift;
@line.AT-POS($n - 1) = @w.List;
}
say +@line;
say now - INIT now;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment