Signature: forEachList(list: List<T>, function: fn(T) -> Unit) -> List<T>

Description: Apply function to every element of list. Phase 7 of collections plan.

Parameters

Returns: List

Example

forEachList(xs, print)