Skip to content

iter::collect

collect(items)

ParameterTypeDescription
itemsIterableThe Iterable to collect.

Some standard library functions return lazily evaluated Iterables. This function forces an Iterable's items to be evaluated right away.

Returns

(List)