Kotlin adapter remove item

I’m trying to have item removed from my list but I get following error Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: public inline fun