Last active
December 11, 2015 00:58
-
-
Save mdekstrand/4519748 to your computer and use it in GitHub Desktop.
Info Need for path-dependent types blog post.
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
trait InfoNeed { | |
type DataType | |
/** Get the web request to fetch data */ | |
def request: WebRequest[DataType] | |
/** Get the neighbors from some fetched data */ | |
def neighbors(data: DataType): Traversable[Node] | |
/** Save the data to the data store. */ | |
def save(store: DataStore, data: DataType) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment