Upper Type Bounds - Scala Documentation
In Scala, type parameters and abstract types may be constrained by a type bound. Such type bounds limit the concrete values of the type variables and possibly reveal more information about the members of such types. An upper type bound T <: A declares that type variable T refers to a subtype of type A. Here is an example which relies on an upper type bound for the implementation of the polymorphic method findSimilar:
Read full article from Upper Type Bounds - Scala Documentation
No comments:
Post a Comment