Expand description
Sequence behavior for the SIM runtime: lazy, persistent, and transducers.
The kernel defines the operation and object contracts; this crate supplies the concrete sequence organ (lazy sequences, persistent vectors/maps/sets, and transducer pipelines).
Structs§
- Lazy
Sequence - On-demand sequence object driven by a
SequenceProducer. - Persistent
Set - Immutable, shareable set object holding canonically distinct elements.
- Persistent
Vector - Immutable, shareable vector object backed by a shared slice.
- Profile
Sequence - Sequence object that tags an inner sequence with a language profile.
- Transducer
Pipeline - An ordered chain of
TransducerSteps applied per element in one pass.
Enums§
- Transducer
Step - A single stage of a
TransducerPipeline.
Functions§
- filter_
sequence - Return a lazy sequence that keeps elements of
sourcepassingpredicate. - for_
each_ sequence - Apply
visitorto each element ofsourcefor its effect. - force_
sequence_ bounded - Drive a sequence to completion, refusing to exceed
maxelements. - lazy_
sequence_ value - Wrap a
SequenceProduceras a runtime sequenceValue. - map_
sequence - Return a lazy sequence that maps each element of
source. - persistent_
list - Construct an immutable list
Valuefrom the given elements. - persistent_
list_ push - Return a new list with
itemappended; the input list is unchanged. - persistent_
map - Construct an immutable map (table)
Valuefrom key/value entries. - persistent_
map_ assoc - Return a new map with
keybound tovalue; the input map is unchanged. - persistent_
set - Construct a
PersistentSetas a runtimeValue, deduplicating elements. - persistent_
set_ insert - Return a new set with
iteminserted if canonically absent; input unchanged. - persistent_
vector - Construct a
PersistentVectoras a runtimeValue. - persistent_
vector_ push - Return a new vector with
itemappended; the input vector is unchanged. - publish_
sequence_ organ_ claims - Publish the sequence organ and its operation keys into the claim store.
- publish_
sequence_ organ_ claims_ for_ lib - Publish the sequence organ claims as part of a loaded lib receipt.
- reduce_
sequence - Fold
sourceinto a single value withreducer, starting frominit. - sequence_
filter_ op_ key - Operation key for sequence filtering.
- sequence_
for_ op_ key - Operation key for sequence iteration (
for-each). - sequence_
for_ profile - Tag a sequence
Valuewith a language profile viaProfileSequence. - sequence_
from_ list_ value - Adapt a list
Valueinto a sequenceValue. - sequence_
lazy_ op_ key - Operation key for lazy sequence construction.
- sequence_
map_ op_ key - Operation key for sequence mapping.
- sequence_
op_ keys - All operation keys the sequence organ advertises.
- sequence_
organ_ symbol - Symbol naming the sequence organ as a claim subject.
- sequence_
persistent_ op_ key - Operation key for persistent sequence construction.
- sequence_
reduce_ op_ key - Operation key for sequence reduction.
- sequence_
transduce_ op_ key - Operation key for transducer-driven sequence pipelines.
- transduce
- Stream
sourcethroughpipelineand fold survivors into a single value.
Type Aliases§
- Sequence
Producer - Element generator backing a
LazySequence.