diff options
| author | Markus "Holli" Holzer <holli.holzer@gmail.com> | 2020-02-25 07:51:48 +0100 |
|---|---|---|
| committer | Markus "Holli" Holzer <holli.holzer@gmail.com> | 2020-02-25 07:51:48 +0100 |
| commit | 4eac79a8077d5901fc6158be32d5cffe693ef953 (patch) | |
| tree | fdb3bd3a1211987909cb4b5b0c3cb4cc414b8549 | |
| parent | 760832cf1baeb640d6c9723460b1f921fe10986f (diff) | |
| download | perlweeklychallenge-club-4eac79a8077d5901fc6158be32d5cffe693ef953.tar.gz perlweeklychallenge-club-4eac79a8077d5901fc6158be32d5cffe693ef953.tar.bz2 perlweeklychallenge-club-4eac79a8077d5901fc6158be32d5cffe693ef953.zip | |
oopsie
| -rw-r--r-- | challenge-048/markus-holzer/raku/ch-1.p6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-048/markus-holzer/raku/ch-1.p6 b/challenge-048/markus-holzer/raku/ch-1.p6 index 97ec1a5a18..3b8d44cd6c 100644 --- a/challenge-048/markus-holzer/raku/ch-1.p6 +++ b/challenge-048/markus-holzer/raku/ch-1.p6 @@ -4,7 +4,7 @@ # # A concise version of this looks like -given my @men = 1..50 { .push( .splice(0,2).first ) while .elems }; +given my @men = 1..50 { .push( .splice(0,2).first ) while .elems > 1 }; say @men.first; # But, the problem naturally lends itself to be expressed in terms of a circular linked list, |
