Constructors
makefunction
Creates a new
RefChunkfrom a Chunk,Effect, orFx.
Derived queries
filterValuesvariable
Filter the values of a RefChunk creating a Computed value.
mapValuesvariable
Map the values of a RefChunk to a different type.
partitionvariable
Partition the values of a RefChunk using a predicate.
reducevariable
Reduce the values of a RefChunk to a single value.
reduceRightvariable
Reduce the values of a RefChunk in reverse order.
sizevariable
Get the current size of a RefChunk.
Optional queries
findFirstvariable
Find the first value satisfying a predicate.
findLastvariable
Find the last value satisfying a predicate.
getIndexvariable
Get a value at a particular index of a RefChunk.
headvariable
Get the first element of a RefChunk as a Filtered.
lastvariable
Get the last element of a RefChunk as a Filtered.
State models
RefChunkinterface
A RefChunk is a RefSubject specialized over a Chunk of values.
State predicates
containsvariable
Check if a RefChunk contains a value.
everyvariable
Check if all values satisfy a predicate.
isEmptyvariable
Check if a RefChunk is empty.
isNonEmptyvariable
Check if a RefChunk is non-empty.
somevariable
Check if any value satisfies a predicate.
State updates
appendvariable
Append a value to the current state of a RefChunk.
appendAllvariable
Append an iterable of values to the current state of a RefChunk.
dedupevariable
Remove duplicate values from a RefChunk.
dedupeAdjacentvariable
Remove adjacent duplicate values from a RefChunk.
dropvariable
Drop the first
nvalues from a RefChunk.dropRightvariable
Drop the last
nvalues from a RefChunk.dropWhilevariable
Drop values from a RefChunk while a predicate is true.
filtervariable
Filter the values of a RefChunk (mutating).
mapvariable
Map (Endomorphic) the values of a RefChunk.
modifyAtvariable
Modify the value at a particular index of a RefChunk.
prependvariable
Prepend a value to the current state of a RefChunk.
prependAllvariable
Prepend an iterable of values to the current state of a RefChunk.
removevariable
Remove a value at a particular index of a RefChunk.
replaceAtvariable
Replace a value at a particular index of a RefChunk.
reversevariable
Reverse the values of a RefChunk.
sortvariable
Sort the values of a RefChunk using a provided Order.
takevariable
Take the first
nvalues from a RefChunk.takeRightvariable
Take the last
nvalues from a RefChunk.takeWhilevariable
Take values from a RefChunk while a predicate is true.