Skip to content

Instantly share code, notes, and snippets.

@pchiusano
Created September 23, 2012 03:08
Show Gist options
  • Save pchiusano/3768674 to your computer and use it in GitHub Desktop.
Save pchiusano/3768674 to your computer and use it in GitHub Desktop.
// simplest thing
trait ViewImpl {
def de(items: List[OBItem]): Omnibox[OBItem]
}
// if you want a tighter bound on the result than OBItem, like if all the elements of the list are of type SomeItem, and you want the result to also be of type Omnibox[SomeItem]
trait ViewImpl {
def de[OB <: OBItem](items: List[OB]): Omnibox[OB]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment