Stdlib index
- Captured-borrow migration worklist (3.3.3)
- Owned-bind migration worklist (8.2.7)
- Return-side title audit — the ride-through enumeration
- stdlib ownership audit
- stdlib ownership dispositions (plan 1.3.1 / 4.3.1)
codec
codec / csv
codec / json
collection
- ArrayList
- BPlusTree
- Cache
- Collectors
- HashMap
- HashSet
- Heap
- ImmutableList
- ImmutableMap
- ImmutableSet
- LinkedList
- RedBlackTree
- Sort
collection / ltm
concurrent
error
gfx
hash
ifx
io
io / file
io / net
io / net / dns
io / net / tls
io / net / uri
lang
lang / stream
math
math / fft
math / linalg
math / npio
math / poly
math / random
math / stats
nucleo
- Columns — the Arrow-laid-out substrate
- Fused tensor expressions — Fuse
- Table — the lazy, typed dataframe
- Tape — define-by-run autograd
- Transform intrinsics — Grad, Vmap, Jit
process
reflect
search / distance
search / fuzzy
search / ngram
session
time
- Clock
- DateTimeFormatter
- Duration
- Instant
- LocalDate
- LocalDateTime
- LocalTime
- Period
- ZonedDateTime
- ZoneId
- ZoneOffset
wire
xpu
xpu / mesh
Collectors
cajeta.collection.Collectors — standard Collector factories. Each method
returns a Collector that Stream’s collect terminal can consume. The
factories are method-level templated, so each call site monomorphizes per T,
and every collector ships a combiner alongside the (seed, accumulator) pair so
.parallel().collect(...) can merge per-worker partials.
// Stream -> collect -> owned list:
int32[] data = { 3, 1, 2 };
ArrayList<int32> xs = (heap ArrayStream<int32>(data, 3))
.collect(Collectors.toList<int32>());
Methods
| Signature | |
|---|---|
static #Collector<T, ArrayList<T>> toList<T>() ⚑ | Collect every element into a fresh ArrayList<T>; the combiner appends right onto left via appendAll |
⚑ = @EntryPoint
See also
- Source:
runtime/src/cajeta/collection/Collectors.cajeta - Stream — the
collectterminal - ArrayStream — the usual stream source
- ArrayList —
toList’s accumulator