Last active
December 10, 2015 02:19
-
-
Save negator/4366827 to your computer and use it in GitHub Desktop.
An enumerator of enumerator of activities
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
val posts:Enumerator[List[Post]] = pagingEnumerator(postsUrl) map parseToPostList | |
/* parseToPostList does exactly that. Creates a list of Post objects from json*/ | |
val activities:Enumerator[Enumerator[Activity]] = posts.map{ | |
postList => | |
Enumerator.apply(postList:_*) map buildActivity | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment