Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

2 of 2
deleted 24 characters in body
hyperneutrino
  • 42.8k
  • 5
  • 72
  • 227

Proton, 44 bytes

s=>n=>"".join(s[i]*(i%n?1:n)for i:0..len(s))

Try it online!

hyperneutrino
  • 42.8k
  • 5
  • 72
  • 227

AltStyle によって変換されたページ (->オリジナル) /