forEach


Description:

public void forEach (owned ConsumerFunc<T> func)

Applies the given function to each element in the deque, from first to last.

Example:

    var deque = new Deque<string> (GLib.str_equal);
deque.addLast ("a");
deque.addLast ("b");
deque.forEach ((s) => {
print ("%s\n", s);
});

Parameters:

func

the function to apply to each element.