That's quite elegant solution, thank you. I needed this to rewrite in Swift https://gist.githubusercontent.com/hucario/9ca6b9f6a16d7d9a26573c7ca740ff03/raw/be11ae021a90a83a48b98e6e95eeccb9f0e569d8/crypt.ts
which used for unofficial Pandora API but in the meantime it seems that API no longer going to work, and offcial API not accepting applications, but nevertheless at least I learn something new. However this is strange such initializers was not introduced in Swift, maybe in version 6?
Topic:
Programming Languages
SubTopic:
Swift
Tags: