Skip to content

Instantly share code, notes, and snippets.

@dgadiraju
Last active May 10, 2017 00:09
Show Gist options
  • Save dgadiraju/ee26973ddfdc895c1fcc18593dfffd24 to your computer and use it in GitHub Desktop.
Save dgadiraju/ee26973ddfdc895c1fcc18593dfffd24 to your computer and use it in GitHub Desktop.
os.map(x => x.orderDate.replace("-", "").toInt).foreach(println)
os.filter(x => x.orderStatus == "COMPLETE")
(1 to 100).filter(_ % 2 == 0).reduce((a, b) => a + b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment