of_owned_array


Description:

public static Seq<G> of_owned_array<G> (owned G[] array, TaskEnv? env = null)

Creates a new sequential seq of the given array.

The given array itself will not be modified by seq operations. and the array must not be modified until the execution of the seq pipeline is completed. Except for the non-eager operations iterator() and spliterator(), execution is performed when the terminal operation is invoked. In case of the non-eager operations, the array must not be modified while the iterator/spliterator is used.

This method steals the ownership of the array. The array wil be freed after the execution is completed.

Parameters:

array

a gpointer array

env

a task environment. If not specified, TaskEnv.get_common_task_env is used.

Returns:

the result seq




2022 vala-language.org