# compose

Garret Yoder

03/19/2024, 2:36 PM
Is there a performance difference/hit in a Lazy list if you do a foreach and then call item() individually, vs items(list)? I need to do some filtering stuff before I create items, but for said logic I need to retain the original index for the item I'm at even if it's not being displayed (lookaheads and so on) so just throwing the list at items() is making the logic complex.