-
-
Save stephenjudkins/4458765 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
object Sort extends App { | |
//val toCells = (_: String).trim.split(" +") | |
//val input = io.Source.stdin.getLines.toList.map(toCells).foreach{line => } | |
val input = List("car", "truck", "8", "4", "bus", "6", "1") | |
val (matches, mismatches) = input.partition(_.matches("""\d+""")) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment