LoginSignup
5
3

More than 5 years have passed since last update.

ズンドコキヨシ with Perl6 gather/take編

Posted at

gather {
  my @a = (1..5).map({''});
  until @a.join("") eq "ズンズンズンズンドコ" {
    @a.shift;
    @a.append: take ("ズン", "ドコ").pick;
  }
  take "キ・ヨ・シ!";
}.say

Perl6 便利

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3