I want to filter an arraylist indexes and filter a doc based on the docid I provide.
The below code works for 0th index but cant search the whole list and findout the docid
var results =
this._items?.userItems?.filter { it -> it.requests.get(0).doc == docid }
Kindly suggest the better way of doing It.
Any help is highly appreciated
Thanks