Created
March 7, 2014 17:20
-
-
Save johnynek/9415748 to your computer and use it in GitHub Desktop.
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
// Find the newest asserted at for each combo of subject & property | |
.groupBy('subject, 'property) { | |
_.sortedReverseTake[(String, Double)](('asserted_at, 'value) -> 'items , 1) | |
} | |
// Extract out that newest asserted at value | |
.flatten[(String, Double)](('items) -> ('asserted_at, 'value)) | |
.discard('items) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment