Skip to content

Latest commit

 

History

History
 
 

collections

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Collections

forEach for Lists without Iterator allocation.

Content

The forEachByIndex and forEachWithIndex extension functions for List allows you to iterate on a List without allocating an Iterator.

This is useful when you need to iterate on a List in performance critical conditions (e.g. code executed/called from an onDraw method, or code run on the UI thread more generally).

You also have the reverse equivalents: forEachReversedByIndex and forEachReversedWithIndex.

Download

implementation("com.louiscad.splitties:splitties-collections:$splitties_version")