remove_fast
Description:
Example: Remove the first occurrence of the given data, fast:
public static int main (string[] args) {
GenericArray<int> array = new GenericArray<int> ();
array.add (1);
array.add (2);
array.add (3);
array.add (4);
array.add (5);
// This wont work for strings!
array.remove_fast (2);
// Output:
// ``1``
// ``5``
// ``3``
// ``4``
array.foreach ((val) => {
print ("%d\n", val);
});
return 0;
}
valac --pkg glib-2.0 GLib.GenericArray.remove_fast.vala