Module system.utils.Utilities
Functions
Functions
- arrayCopy (tbl)
-
Parameters:
- tbl
- arrayEquals (tbl1, tbl2)
-
Parameters:
- tbl1
- tbl2
- arrayFind (tbl, value)
-
Parameters:
- tbl
- value
- cacheTable (func, tbl)
-
Parameters:
- func
- tbl
- clamp (lowLimit, value, upLimit)
-
Parameters:
- lowLimit
- value
- upLimit
- clearListToSetCache ()
- compareAny (value1, value2)
-
Parameters:
- value1
- value2
- concatArrays (tbl1, tbl2)
-
Parameters:
- tbl1
- tbl2
- copyConcatArrays (tbl1, tbl2)
-
Parameters:
- tbl1
- tbl2
- createGaplessTable (tbl)
-
Parameters:
- tbl
- deepCopy (tbl)
-
Parameters:
- tbl
- deepEquals (tbl1, tbl2)
-
Parameters:
- tbl1
- tbl2
- distanceL1 (dx, dy)
-
Parameters:
- dx
- dy
- fastCopy (value)
-
Parameters:
- value
- flatten (tbl)
-
Parameters:
- tbl
- getKeyAtPath (targetTable, keyPath)
-
Parameters:
- targetTable
- keyPath
- getKeyList (tbl)
-
Parameters:
- tbl
- getKeyValueLists (tbl)
-
Parameters:
- tbl
- getValueList (tbl)
-
Parameters:
- tbl
- inspect (object)
-
Parameters:
- object
- lerp (v1, v2, factor)
-
Linear interpolation
Parameters:
- v1
- v2
- factor
- listToSet (list)
-
Parameters:
- list
- listToSetCached (list)
-
Parameters:
- list
- lowerBound (tbl, value)
-
Returns the index of the first element in tbl that is >= value
Parameters:
- tbl
- value
- lowerBoundOrdered (tbl, value, compare)
-
Parameters:
- tbl
- value
- compare
- map (tbl, func)
-
Parameters:
- tbl
- func
- mergeTables (dest, src)
-
Parameters:
- dest
- src
- mergeTablesRecursive (dest, src, maxDepth)
-
Parameters:
- dest
- src
- maxDepth
- readOnlyTable (tbl)
-
Parameters:
- tbl
- removeDuplicates (tbl)
-
Parameters:
- tbl
- removeIf (tbl, func)
-
Parameters:
- tbl
- func
- reverse (tbl)
-
Parameters:
- tbl
- setKeyAtPath (targetTable, keyPath, value)
-
Parameters:
- targetTable
- keyPath
- value
- shallowCopy (tbl)
-
Parameters:
- tbl
- sign (x)
-
Parameters:
- x
- sort (tbl, compare)
-
Parameters:
- tbl
- compare
- sortedPairs (tbl)
-
Parameters:
- tbl
- squareDistance (dx, dy)
-
Parameters:
- dx
- dy
- step (edge, x)
-
Return 1 if edge <= x, 0 otherwise
Parameters:
- edge
- x
- tableRemoveIf (tbl, func)
-
Parameters:
- tbl
- func
- toLowercaseCache (text)
-
Parameters:
- text
- truncate (x)
-
Parameters:
- x