Skip to content

Instantly share code, notes, and snippets.

@jasdev
Last active March 15, 2021 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasdev/25871cf89de515edc69c4e6e66a5ba59 to your computer and use it in GitHub Desktop.
Save jasdev/25871cf89de515edc69c4e6e66a5ba59 to your computer and use it in GitHub Desktop.
8×8 Party Parrot wave square in Swift.
let parrotEmojis = (1...8).map { ":wave\($0)parrot:" }
print(
parrotEmojis.indices
.map { (parrotEmojis[$0...] + parrotEmojis[..<$0]).joined() }
.joined(separator: "\n")
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment