Helpers Module
Nested modules
Functions and values
| Function or value | Description |
Full Usage:
assertThat cond msg
Parameters:
bool
msg : string
|
|
Full Usage:
clearIdentityMemos ()
Parameters:
unit
|
Empty every memoizeByIdentity memo, releasing whatever their keys and values hold on to. Call where something large is discarded rather than replaced - a simulation being ended. Doing so is always safe: a memo is only ever an answer that can be worked out again, so the cost of emptying one that was still wanted is that it is filled again on the next call.
|
Full Usage:
cropToLength len fromStart str
Parameters:
int
fromStart : bool
str : string
Returns: string
|
|
Full Usage:
getCustomComponentType _arg1
Parameters:
ComponentType
Returns: CustomComponentType
|
|
|
|
Full Usage:
getMemData address memData
Parameters:
bigint
memData : Memory1
Returns: bigint
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
listSet lst item idx
Parameters:
'a list
item : 'a
idx : int
Returns: 'a list
|
|
Full Usage:
mapFindWithDef defVal key map
Parameters:
'b
key : 'a
map : Map<'a, 'b>
Returns: 'b
Modifiers: inline Type parameters: 'b, 'a |
|
|
|
Full Usage:
mapKeys map
Parameters:
Map<'a, 'b>
Returns: 'a array
Modifiers: inline Type parameters: 'a, 'b |
|
Full Usage:
mapPair f (arg2, arg3)
Parameters:
'S -> 'T
arg1 : 'S
arg2 : 'S
Returns: 'T * 'T
Modifiers: inline Type parameters: 'S, 'T |
|
|
|
|
|
Full Usage:
mapValues map
Parameters:
Map<'a, 'b>
Returns: 'b array
Modifiers: inline Type parameters: 'a, 'b |
|
Full Usage:
memoizeBy keyFunc funcToMemoize
Parameters:
'a -> 'k
funcToMemoize : 'a -> 'c
Returns: 'a -> 'c
|
Return a memoized version of funcToMemoize where. Repeated calls with equivalent inputs return a stored result. Inputs a, a' are deemed equivalent if keyFunc a = keyFunc a'. Use this as well as LazyView etc, it has a different usage since it need not have React output and comparison is via a key function.
|
Full Usage:
memoizeByIdentity funcToMemoize
Parameters:
'a -> 'b
Returns: 'a -> 'b
|
|
Full Usage:
nocr s
Parameters:
string
Returns: string
|
|
Full Usage:
pow2 exponent
Parameters:
int
Returns: int
|
|
|
|
Full Usage:
sprintInitial n s
Parameters:
int
s : string
Returns: string
|
|
Full Usage:
swapArrayEls i1 i2 arr
Parameters:
int
i2 : int
arr : 'a[]
Returns: 'a array
|
|
Full Usage:
testMatch diffX diffY normRot
Parameters:
float
diffY : float
normRot : int
Returns: float list
|
|