Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active Apr 2, 2022
Embed
What would you like to do?
protocol Computable {
func compute() -> Int
}
struct DataCore {
let dataProcessors: Computable
}
// becomes
struct Core {
let dataProcessor: any Computable
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment