to_list


Description:

[ Version ( since = "0.4.0-alpha" ) ]
public Future<List<G>> to_list ()

Accumulates the elements into a new list, in encounter order.

There are no guarantees on the type, mutability, or thread-safety of the list.

This is equivalent to:

seq.collect( Collectors.to_list<G>() );

This is a terminal operation.

Returns:

a future of the result list

See also:

Collectors.to_list




2022 vala-language.org