Skip to content

Instantly share code, notes, and snippets.

@ryandavidhartman
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save ryandavidhartman/a7d07c3f2d4d140df9e1 to your computer and use it in GitHub Desktop.

Select an option

Save ryandavidhartman/a7d07c3f2d4d140df9e1 to your computer and use it in GitHub Desktop.
try_example7
def processData(data: Try[List[Data]]): Try[Int] = for {
x <- data
results <- x. x.sumBy(i => i.value)
} yield results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment