Comment

Comment by bitsofpancake

Translation to Python:

    for i in range(100):
      print((("fizz" if i % 3 == 0 else "") +
             ("buzz" if i % 5 == 0 else ""))
             or str(i))
The "+" makes it a monoid.

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton