Skip to main content
added 252 characters in body
Source Link
GammaFunction
  • 6.9k
  • 13
  • 23

Zsh, 107107 105 bytes

-2 bytes due to leniency on trailing spaces

print -l iPhone{,\iPhone\ {,{3G,4}{,S},5{,c,s},6{,s}{,\ Plus},SE,{7,8}{,\ Plus},X{,R,S,S\ Max},11{,\ Pro{,\ Max}}}}

Try it online!Try it online! Try it online!

A long brace expansion. Bash/sh need printf %s\\n instead for 4 extra bytes.

Zsh, 107 bytes

print -l iPhone{,\ {{3G,4}{,S},5{,c,s},6{,s}{,\ Plus},SE,{7,8}{,\ Plus},X{,R,S,S\ Max},11{,\ Pro{,\ Max}}}}

Try it online!

A long brace expansion. Bash/sh need printf %s\\n instead for 4 extra bytes.

Zsh, 107 105 bytes

-2 bytes due to leniency on trailing spaces

print -l iPhone\ {,{3G,4}{,S},5{,c,s},6{,s}{,\ Plus},SE,{7,8}{,\ Plus},X{,R,S,S\ Max},11{,\ Pro{,\ Max}}}

Try it online! Try it online!

A long brace expansion. Bash/sh need printf %s\\n instead for 4 extra bytes.

Source Link
GammaFunction
  • 6.9k
  • 13
  • 23

Zsh, 107 bytes

print -l iPhone{,\ {{3G,4}{,S},5{,c,s},6{,s}{,\ Plus},SE,{7,8}{,\ Plus},X{,R,S,S\ Max},11{,\ Pro{,\ Max}}}}

Try it online!

A long brace expansion. Bash/sh need printf %s\\n instead for 4 extra bytes.