-
-
Save laevandus/6f716ac00258464fe730de8ea61cd86b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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