Transformations
There are extensions on TiledList
that offer many standard library like transformations
to allow for easy TiledList
modification. These include:
TiledList.map()
andTiledList.mapIndexed()
TiledList.filter()
,TiledList.filterIndexed()
andTiledList.filterisInstance()
TiledList.distinct()
andTiledList.distinctBy()
TiledList.groupBy()
Generic transformations
For transformations outside of this, a buildTiledList
method that offers semantics identical to
the Kotlin standard
library buildList
is also available.
This method is most applicable to additive modifications like adding separators, or other miscellaneous items at arbitrary indices.