© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Lorefnon
Open Web Enthusiast
Ruby:
(1..100).each do |i| # Built-in support for ranges, iterator blocks str = '' str << 'Fizz' if i % 3 == 0 # Mutable strings, postfix conditionals str << 'Buzz' if i % 5 == 0 puts str.empty? ? i : str end