of_array


Description:

public static Seq<G> of_array<G> (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 doesn't steal the ownership of the array. The array must not be freed until 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