distinct

fun <T> Stream<T>.distinct(strict: Boolean = false): Stream<T>

Ignores duplicate values and thus only publishes when the value has changed.

By default, the comparison between the previous and current value is not strict ==. You can set strict to true to use strict === comparison


fun <T> Stream<T>.distinct(): Stream<T>

Ignores duplicate values and thus only publishes when the value has changed.

The comparison between the previous and current value is NOT strict, using ==.