scala-library-next icon indicating copy to clipboard operation
scala-library-next copied to clipboard

add `readWith` method to StdIn

Open riiswa opened this issue 4 years ago • 0 comments

Inputs are very often parsed in order to get a desired object A. I think it would be convenient to add the method StdIn.readWith[A](f: String => Boolean): A to Scala in order to make the input processing phase more natural and thus gain in fluidity (chained methods for example).

riiswa avatar Mar 25 '21 21:03 riiswa