https://kotlinlang.org logo
e

enleur

08/22/2017, 6:13 AM
what is the best way to debug chain method calls?
Copy code
listOf(1, 2, 3, 4, 5)
  .map { n -> n * (n + 1) / 2 }
  .mapIndexed { (i, n) -> "Triangular number $i: $n" }
can i inspect
map
result?