User | Kudos |
---|---|
5 | |
2 | |
2 | |
1 | |
1 |
Often I find that i need to create a empty copy of an existing type, this is essentially done by indexing the array and then creating an empty array of the indexed type. Essientally many array manipulation is done this way. It would be nice if there was a single function that does this.
This code:
Is replaced by this code:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has received less than 4 kudos within 4 years after posting will be automatically declined.