If that’s the full snippet you could just do ``` ...
# getting-started
b
If that’s the full snippet you could just do
Copy code
ec2Client?.describeInstances()?.reservations
            .map { it.instances }
            .flatMap { it }
            .forEach { System.out.println(it.toString()) }