ListExtension<E> extension

List extension extends the functionality of the native List type by adding a couple of useful methods.

Adds as method to cast the List as a List of Type by applying the given transformation function to each underlying item.

on

Methods

as<T>(T f(E e)) List<T>
Returns a List of Type by applying the transformation function.