Lewis Diamond
02/15/2021, 4:07 AMprocess.stdin
?nanodeath
02/15/2021, 4:32 AMin
readLine()
might also be usefulLewis Diamond
02/15/2021, 4:38 AMreadLine()
but that's kinda bad:
fun stdin(): Flow<String?> = flow { // flow builder
while (true) {
var x = readLine();
emit(x);
}
}
in
nanodeath
02/15/2021, 4:43 AMreadLine() ?: break
...and no semicolons 😛