![]() |
arrays
String arrays have deletestring arrayname,index
and removestring arrayname,string I want the same things for numeric arrays deleteelement array,index; removeelement array,#; not sure about those names though. Basially you could delete any index in the array and it would reindex everything and be all good. |
Both can easily be done with a small script.
|
Quote:
|
Just create a function that you can copy and paste into your scripts. I have one that does that, but I'm sure you can script it.
|
Trevor empty out your PMs or im me -.-
I really need to talk to you :( |
Built-in functions are better, they take less time. Its more efficient to have a command to do this for you than do it yourself, because your script needs to be parsed, the command is built-in.
|
Quote:
Quote:
|
Quote:
|
Ok, yes I know I could make some functions to do this, but, I'm hoping stefan's built in functions won't be so very laggy as the functions would no doubt have to me, using at least a for loop, and the arrays would be pretty large. I could use temporary string arrays, but those lag pretty badly when the size gets decent. And I would need multiple functions for multiple arrays. One function to translate each array, and one function to do each operation.
|
If you don't care about ordering then deletion/replacement is a piece of cake - you don't even need a for loop. My problem with these functions is that Stefan would need to make them care about ordering at all times (just in case) and so they would be far less efficient than a custom-scripted function.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
It's just something I think will improve the use of arrays generally, for any sort of listing purposes. or sequential data. |
Quote:
Quote:
Quote:
|
| All times are GMT +2. The time now is 12:04 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.