Skip to content

Instantly share code, notes, and snippets.

@chancila
Created April 26, 2013 02:41
Show Gist options
  • Save chancila/5464765 to your computer and use it in GitHub Desktop.
Save chancila/5464765 to your computer and use it in GitHub Desktop.
def mostRetweeted: Tweet = {
val potentialTweets = filterAcc(x => x.retweets > elem.retweets,new Empty)
if(!potentialTweets.isEmpty) {
potentialTweets.mostRetweeted
} else {
elem
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment