Skip to content

Instantly share code, notes, and snippets.

@tkausch
Created September 18, 2020 16:48
Show Gist options
  • Save tkausch/8113f019363602c2f2531c2710f88a4e to your computer and use it in GitHub Desktop.
Save tkausch/8113f019363602c2f2531c2710f88a4e to your computer and use it in GitHub Desktop.
How to concatenate strings to make one joined string
let hello = "Hello"
let thomas = "Thomas"
let hellothomas = [hello, thomas]
let combined = hello + thomas
let combined2 = "\(hello)\(thomas)"
let combined3 = hellothomas.joined()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment