Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created March 22, 2021 10:16
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 laevandus/6f716ac00258464fe730de8ea61cd86b to your computer and use it in GitHub Desktop.
Save laevandus/6f716ac00258464fe730de8ea61cd86b to your computer and use it in GitHub Desktop.
extension EntryInterpolation {
mutating func appendInterpolation<T: CustomStringConvertible>(_ value: T) {
values.append(value.description)
}
}
let index = 2
let items = ["Item 1", "Item 2"]
entryStorage.add("Entry \(index): items=\(items)")
// Entry 2: items=["Item 1", "Item 2"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment