Skip to main content
2 of 5
added 289 characters in body
totallyhuman
  • 17.3k
  • 3
  • 32
  • 88

Haskell, 8 bytes

sequence

Try it online!

Less boring, 33 bytes

f[]=[[]]
f(h:t)=[i:j|i<-h,j<-f t]

Try it online!

totallyhuman
  • 17.3k
  • 3
  • 32
  • 88