Background for Skyrim SE
Member of the SPE_Utility script
int[]functionRemoveIf_Int(int[]arr, stringlua)NativeGlobal

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)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.