Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active April 2, 2022 10:59
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/877d8eaabaa247ade6dfb8160076b6dd to your computer and use it in GitHub Desktop.
Save laevandus/877d8eaabaa247ade6dfb8160076b6dd to your computer and use it in GitHub Desktop.
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