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);
});
| func |
the function to apply to each element. |