Expand description
The data steps (RFC 0027 §5 “Data”): array and text operations without
a model — map, filter, reduce, sort, dedupe, chunk, parse —
as pure functions over JSON values. Element expressions are CEL (item,
index, acc, plus the run data) or {{template}} strings; by keys are
dotted paths.
Functions§
- chunk
chunk: split text bychars|lines|tokens(approximate) or an array into slices ofsize, withoverlapelements/chars carried over.- cmp_
values - A total order over JSON values: null < bool < number < string < array < object.
- dedupe
dedupe: keep the first occurrence per key (bypath) / value.- filter
filter: keep the elements whoseexpris true.- map
map:exprover every element.- parse
parse: text → JSON (json|yaml|csv|lines|auto).- path_of
- A dotted path inside a value.
- reduce
reduce: foldexprover the elements withacc(starting atinitial).- sort
sort: by a dotted path (or the element itself),asc|desc; stable.