is there a function on collections that somehow ma...
# announcements
t
is there a function on collections that somehow mapsIndexed and filters at the same time? I need the indices of objects that have a specific property. I can't filter first because that would change the indices and I cant map first because then I lose the objects. Of course I could zip the objects with their original indices and then filter but I'd like to avoid that as kotlin doesn't have nice tuple syntax.
d
tschuchort:
filterIndexed
t
but that still returns the original object right? I need to return the index
d
Yeah, you might need to zip then.