like this ``` arr.forEach { if (it < s...
# getting-started
o
like this
Copy code
arr.forEach {
        if (it < smallest) {
            smallest = it
        }
    }
compared to what it’s suggesting
Copy code
arr
            .asSequence()
            .filter { arr[it] < smallest }
            .forEach { smallest = arr[it] }