Constructors
makefunction
Creates a new
RefArrayfrom an array,Effect, orFx.
Derived queries
filterValuesvariable
Filter the values of a RefArray using a predicate creating a Computed value.
groupByvariable
Group the values of a RefArray by a key.
lengthvariable
Get the current length of a RefArray.
mapValuesvariable
Map the values with their indexes of a RefArray.
partitionvariable
Partition the values of a RefArray using a predicate.
reducevariable
Reduce the values of a RefArray to a single value.
reduceRightvariable
Reduce the values of a RefArray to a single value in reverse order.
Optional queries
State models
RefArrayinterface
A RefArray is a RefSubject that is specialized over an array of values.
State predicates
isEmptyvariable
Check to see if a RefArray is empty.
isNonEmptyvariable
Check to see if a RefArray is non-empty.
State updates
appendvariable
Append a value to the current state of a RefArray.
appendAllvariable
Append an iterable of values to the current state of a RefArray.
dedupeWithvariable
Remove any duplicate values from a RefArray.
dropvariable
Drop the first
nvalues from a RefArray.dropRightvariable
Drop the last
nvalues from a RefArray.dropWhilevariable
Drop values from a RefArray while a predicate is true.
insertAtvariable
Insert a value at a particular index of a RefArray.
mapvariable
Map (Endomorphic) the values of a RefArray.
modifyAtvariable
Modify the value at a particular index of a RefArray.
prependvariable
Prepend a value to the current state of a RefArray.
prependAllvariable
Prepend an iterable of values to the current state of a RefArray.
replaceAtvariable
Replace a value at a particular index of a RefArray.
rotatevariable
Rotate the values of a RefArray by
nplaces. Helpful for things like carousels.sortByvariable
Sort the values of a RefArray using a provided Order.
takevariable
Take the first
nvalues from a RefArray.takeRightvariable
Take the last
nvalues from a RefArray.takeWhilevariable
Take values from a RefArray while a predicate is true.