andrewoma
fun main(args: Array<String>) { for (line in generateSequence { readLine() }.asIterable()) { println("Line is: $line") } }