- Found in:
- Scrab's PE
Description
Documentation Comment
Remove all occurences satisfying the predicate function, return the filtered array
Example: RemoveIf_Int(arr, "function predicate(a) return a > 5 end") removes all elements that are > 5
"lua" can also be a filepath to a .lua file containing the function, relative to Skyrim.exe
Caveats
Parameters
int[]arr
stringlua
Examples
Auto-Generated Example
int[] myIntArray__arr
string myString__lua
int[] returnedValue = SPE_Utility.RemoveIf_Int(myIntArray__arr, myString__lua)