1 /* 2 * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. 3 */ 4 5 // This file was automatically generated from flow.md by Knit tool. Do not edit. 6 package kotlinx.coroutines.guide.exampleFlow12 7 8 import kotlinx.coroutines.* 9 import kotlinx.coroutines.flow.* 10 <lambda>null11fun main() = runBlocking<Unit> { 12 (1..5).asFlow() 13 .filter { 14 println("Filter $it") 15 it % 2 == 0 16 } 17 .map { 18 println("Map $it") 19 "string $it" 20 }.collect { 21 println("Collect $it") 22 } 23 } 24