<lambda>null1// This file was automatically generated from flow.md by Knit tool. Do not edit. 2 package kotlinx.coroutines.guide.exampleFlow11 3 4 import kotlinx.coroutines.* 5 import kotlinx.coroutines.flow.* 6 7 fun main() = runBlocking<Unit> { 8 val sum = (1..5).asFlow() 9 .map { it * it } // squares of numbers from 1 to 5 10 .reduce { a, b -> a + b } // sum them (terminal operator) 11 println(sum) 12 } 13