filter

fun <T> Chain<T>.filter(block: (T) -> Boolean): Chain<T>(source)

block must be a pure function or at least not use external random variables, otherwise fork could be broken