Skip to content

Instantly share code, notes, and snippets.

@an0
Created January 2, 2019 16:39
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 an0/6e018ab5c5c193c2b6af4ebc784cbeed to your computer and use it in GitHub Desktop.
Save an0/6e018ab5c5c193c2b6af4ebc784cbeed to your computer and use it in GitHub Desktop.
Swift Quine without debugDescription
let q = Unicode.Scalar(34)!
let s =
"""
print("let q = Unicode.Scalar(34)!")
print("let s =")
print(q, q, q, separator: "")
print(s)
print(q, q, q, separator: "")
print(s)
"""
print("let q = Unicode.Scalar(34)!")
print("let s =")
print(q, q, q, separator: "")
print(s)
print(q, q, q, separator: "")
print(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment