val list = listOf(1,2,3,4).k()
ListK.monadFilter().fx.monadFilter {
list.bindWithFilter { it % 2 == 0 }
}.let(::println)
crashes with NPE. But this works fine
Copy code
val list = listOf(1,2,3).k()
ListK.monadFilter().fx.monadFilter {
list.bindWithFilter { it % 2 == 0 }
}.let(::println)
r
raulraja
05/29/2020, 10:40 AM
that looks like a bug in bindWithFilter
raulraja
05/29/2020, 10:41 AM
Would you remind reporting it? thanks.
t
than_
05/29/2020, 10:42 AM
Sure 🙂. Just wanted to be sure.
r
raulraja
05/29/2020, 10:43 AM
shot in the air but the bind continuation is advancing the iterator to a point where there is not ore values and then it tries to access the value in the predicate
raulraja
05/29/2020, 10:44 AM
just guessing
a
aballano
05/29/2020, 11:55 AM
this is an interesting one indeed, I’m taking a look 👀