Helpers Module
Nested modules
Modules | Description |
Functions and values
Function or value | Description |
Full Usage:
assertThat cond msg
Parameters:
bool
msg : string
|
|
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[]
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[]
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:
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[]
|
|
Full Usage:
testMatch diffX diffY normRot
Parameters:
float
diffY : float
normRot : int
Returns: float list
|
|
|