-
-
Save laevandus/877d8eaabaa247ade6dfb8160076b6dd 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
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