Hyperlinkv0.8.0-beta.28

effect

Chunk80

Constructors

Models

Elements

chunksOfconstGroups elements in chunks of up to n elements.containsconstReturns a function that checks if a Chunk contains a given value using the default Equivalence.containsWithconstReturns a function that checks if a Chunk contains a given value using a provided isEquivalent function.dedupeconstRemoves duplicate elements from a Chunk, preserving the first occurrence of each value.dropconstDrops the first up to n elements from the chunk.dropRightconstDrops the last n elements.dropWhileconstDrops all elements so long as the predicate returns true.everyconstChecks whether a predicate holds true for every Chunk element.findFirstconstReturns the first element that satisfies the specified predicate, or None if no such element exists.findFirstIndexconstReturns the first index for which a predicate holds.findLastconstFinds the last element for which a predicate holds.findLastIndexconstReturns the last index for which a predicate holds.getconstGets the value at an index in a Chunk safely, returning None when the index is out of bounds.headconstReturns the first element of this chunk safely if it exists.headNonEmptyconstReturns the first element of this non empty chunk.intersectionconstCreates a Chunk of values that are included in both chunks.isEmptyconstDetermines if the chunk is empty.isNonEmptyconstDetermines if the chunk is not empty.lastconstReturns the last element of this chunk safely if it exists.lastNonEmptyconstReturns the last element of this non empty chunk.modifyconstApplies a function to the element at the specified index safely, creating a new Chunk, or returns None if the index is out of bounds.removeconstDeletes the element at the specified index, creating a new Chunk.replaceconstChanges the element at the specified index safely, creating a new Chunk, or returns None if the index is out of bounds.reverseconstReverses the order of elements in a Chunk.sizeconstRetrieves the size of the chunk.someconstChecks whether a predicate holds true for some Chunk element.tailconstReturns every element after the first safely, or None when the chunk is empty.tailNonEmptyconstReturns every element after the first from a non-empty chunk.takeconstTakes the first up to n elements from the chunk.takeRightconstTakes the last n elements.takeWhileconstTakes all elements so long as the predicate returns true.unionconstCreates a Chunks of unique values, in order, from all given Chunks.unzipconstTakes a Chunk of pairs and returns two corresponding Chunks.

Combinators

Mapping

Filtering

Sequencing

Combining

Converting

Folding

Instances

Sorting

Splitting

Type Lambdas

Unsafe

Zipping