ves no purpose, which is almost
certainly an error.</p>
<h3>Noncompliant code example</h3>
<pre>
val sequence = sequenceOf("Hello", " ", "World")
var totalLength = 0
sequence.map { totalLength += it.length } // Noncompliant, do nothing, "map" is not a terminal operation
// here totalLength == 0
</pre>
<pre>
val stream = listOf("Hello", " ", "World").stream()
stream.filter { it.isNotBlank() }  // Noncompliant, do nothing, "filter" is not a terminal operation
// the following "forEach" throws an exception, on