Hacker Newsnew | past | comments | ask | show | jobs | submit | hashkitten's commentslogin

The cycle method is really elegant in Perl, of all languages:

  use feature say;
  say <{Fizz,}> . <{Buzz,,,}> || $_ for 0..100;


It’s certainly concise, but I wouldn’t consider that to be elegant.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: