title: Restrict Scala type to be one of a set of types
body: <p>Is there a way to define a generic type parameter that can be one of a small set of types? I want to define a type T that can only be one of {Int, Long, Float, Double}.</p>