Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
object Main{
def main(args:Array[String]){
Array.fill(10)(readInt).sortWith((a,b) => a > b).slice(0,3).map(println(_))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment