Is it possible to accept user input in a Scala Worksheet? For example:
println("Enter some numbers and press Ctrl-D")
val input = Source.fromInputStream(System.in)
val lines = input.getLines().collect
I can type a few lines and press Ctrl-D, and have IntelliJ continue interpreting the worksheet.