|We don't bite newbies here... much|
Re^5: Nested Data Structures, OOPby kcott (Chancellor)
|on Jul 24, 2012 at 00:07 UTC||Need Help??|
It's good to see you're paying attention to deprecation warnings.
You can use the splice function to remove elements from an array. Here's an example:
If you know the value you want to delete but not the array index of that value, grep may be a better option:
Also, an empty list will not add elements to the array, e.g.
You might use this feature in, for instance, a map statement. This example shows discarding certain values and modifying the remainder:
You may also find the following modules useful: