collectionize

open fun collectionize(input: Any): Collection<out Any>(source)

Flattens input collections (including arrays *but* not maps). If input is not a collection wraps it in a collection and returns it.

Return

collection of flattened input or single input wrapped in a collection.

Parameters

input

any object