KotlinListflatten

Returns a single list of all elements from all collections in the given collection.

Syntax

list.flatten()