https://github.com/isxander/useful-arrays
a class of useful array extentions that will make your life so much easier!
https://github.com/isxander/useful-arrays
Last synced: 11 months ago
JSON representation
a class of useful array extentions that will make your life so much easier!
- Host: GitHub
- URL: https://github.com/isxander/useful-arrays
- Owner: isXander
- Created: 2020-02-29T10:43:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-15T12:54:25.000Z (almost 6 years ago)
- Last Synced: 2025-03-12T00:47:30.668Z (over 1 year ago)
- Language: C#
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Useful Arrays
This repository includes a class of useful extention methods to make your life so much easier when working with arrays.
I am very active and are up to improvements and even more extentions to make this class as usefull as it can be!
Below are guides on how to use each extention.
# Arrays.RemoveAt(this source, index)
Removes an index from array and resizes the array: someArray = someArray.RemoveAt(4)
# Arrays.RandomIndexOf(source, element)
Similar to Array.IndexOf or Array.LastIndexOf but picks a random one instead of the first or last: int someVariable = Arrays.RandomIndexOf(someArray, someInteger)
# Arrays.ClearArray(this source)
Passes an empty array. Good for releasing things from memory: someArray = someArray.ClearArray()
# Arrays.Append(this source)
Returns an array with an extra value at the end: someArray = someArray.Append(5) or someArray = someArray.Append("string")