Skip to main content
3 of 3
deleted 1368 characters in body
GammaFunction
  • 6.9k
  • 13
  • 23

Zsh, 31 bytes

Accidentally cut my previous byte-count in half answering another prompt...

for i;a=({$i,}\ $^a)
<<<${(F)a}

Try it online!

Delimiter is one or more spaces, we abuse trailing delimiters extensively here.

GammaFunction
  • 6.9k
  • 13
  • 23