Style of computer programming in which algorithms are written in terms of types to-be-specified-later that are then instantiated when needed for specific types provided as parameters. revolvy
Generic code enables you to write flexible, reusable functions and types that can work with any type, subject to requirements that you define. You can write code that avoids duplication and expresses its intent in a clear, abstracted manner. swift.org
- https://docs.swift.org/swift-book/LanguageGuide/Generics.html
- https://www.revolvy.com/page/Generic-programming
- https://www.appcoda.com/swift-generics/
- https://blog.bobthedeveloper.io/intro-to-generics-in-swift-with-bob-df58118a5001
- https://imnotyourson.com/lightweight-generics-in-objective-c/
- Generic Specialization
- Generic Specialization of functions in Swift