Perl ã«ã¯ x æ¼ç®åããããx 3 ã¨ãã£ãå ·åã«ç¹°ãè¿ãåæ°ãä»ããäºã§é£ç¶ããæååãç°¡åã«ä½ãåºããã¨ãåºæ¥ãã say 1 x 3; # 111 say "foo" x 3; # foofoofoo ãã㯠Perl5 ã§ãã馴æã¿ãããã Perl6 ã® Range ã¯åãã say 1 xx 3; # (1 1 1) say "foo" xx 3; # (foo foo foo) é£ç¶ããé åè¦ç´ ãä½ãåºãããããã©ãããç¡éãªã¹ããä½ãåºããã say 1 xx *; # (...) say "foo" xx *; # (...) ãã¡ããç¡éæ°åãä½ããã (1 .. *)[^10].perl.say; # (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) fibonacci æ°åããããªã«ç°¡åã (1, 1, *+* ...^ *)[^100].per
{{#tags}}- {{label}}
{{/tags}}