Created
September 23, 2012 03:08
-
-
Save pchiusano/3768674 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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