Created
July 8, 2019 13:43
-
-
Save gabfssilva/bb74c8965c1ac179745b123ce2266359 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Source | |
.unfoldAsync(1) { page => | |
fetchHttpServicePage(page).map { | |
case Nil => None | |
case list => Some(page + 1, list) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment