fromList


Description:

public static Stream<T> fromList<T> (ArrayList<T> list)

Creates a Stream from an ArrayList.

Example:

    var list = new ArrayList<string> (GLib.str_equal);
list.add ("a");
var s = Stream.fromList<string> (list);

Parameters:

list

the source ArrayList.

Returns:

a new Stream over the list elements.