Skip to content

Instantly share code, notes, and snippets.

@arturaz
Created April 19, 2015 18:34
Show Gist options
  • Save arturaz/db5437e1041f61008e4d to your computer and use it in GitHub Desktop.
Save arturaz/db5437e1041f61008e4d to your computer and use it in GitHub Desktop.
response.ids.foldLeft(
Task.now(Vector.empty[ApiQuery.OrderResponse])
) { (task, id) =>
for {
responses <- task
response <- ApiQuery.Order(id).request(cfg.baseUri, cfg.websiteRetries)
} yield responses :+ response
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment