soma.cell

Programs using pipes (|>)

45 verified Soma programs that use pipes (|>). Start from one of these when you write a program that needs it.

ProgramLinesUses
A horde: one [task] agent per document, a bounded pool, a hard token budget, each verdict stored exactly once, a summary at the end58an agent cell, LLM calls (think), pipes (|>), lambdas, require / fail, several cells
A population simulation in rounds: every agent of a round sees the same62an agent cell, LLM calls (think), pipes (|>), lambdas, several cells
A ReAct-style agent whose tools are real, deterministic computations63a state machine, an agent cell, LLM calls (think), pipes (|>), try / catch, lambdas, tools
A/B test rollup: per-variant conversions and lift over control60pipes (|>), lambdas
Market-basket analysis: transactions of (order, product) lines61pipes (|>)
Cohort analysis: bucket users by signup month, then measure how many were still active in a later month59pipes (|>), lambdas
CSV-shaped transform: clean -> derive -> project51pipes (|>), lambdas
Deduplication of an event stream with distinct()52pipes (|>)
Expense report over a List<Map> of line items62pipes (|>), lambdas
Conversion funnel: count distinct users reaching each stage, then compute step-to-step conversion rates59pipes (|>)
group_by returns a Map<String, List>; iterate its entries to compute a custom reduction the built-in agg doesn't cover (here: weighted average)58pipes (|>), lambdas
Relational inner_join: enrich order rows with customer details, then roll up spend per customer tier57pipes (|>), match
Game leaderboard: rank players by score, award medals, compute gaps60pipes (|>)
left_join keeps every left row even when the right side has no match54pipes (|>), lambdas
Web access log analysis over List<Map> entries59pipes (|>)
Pipeline over typed Record literals (Name { field: v }) instead of map()46pipes (|>)
Sales report: a List<Map> of orders rolled up by region and category54pipes (|>)
Streaming ingest pipeline: push records into an ephemeral buffer slot, then aggregate the buffer in the same handler55pipes (|>)
Survey scoring: normalize raw responses, roll up per question, and flag low-confidence questions50pipes (|>), lambdas
Top-N and bottom-N reporting over a movie ratings table59pipes (|>)
Portfolio P&L tracker over a list of position records63pipes (|>), lambdas
Inventory conservation — stock never teleports, never goes negative92a memory invariant, pipes (|>), try / catch, lambdas
Gcd / lcm — Euclid's algorithm and its consequences gcd() is a builtin (Euclid on absolute values)54pipes (|>), lambdas
Descriptive statistics — mean, variance, stddev, median via sort69pipes (|>), lambdas
Vector operations — dot product, norm, cosine similarity56pipes (|>), lambdas
Binary search tree built from Node records with nested `left`/`right` children68pipes (|>)
Entity-Component shape: each Entity record carries a bag of components60pipes (|>), lambdas
Employee directory: records driving group_by / agg / inner_join style reporting54pipes (|>), lambdas
Family tree: Person records with a list of `children` records, walked recursively71pipes (|>)
Inventory: a list of Item records with in-place quantity mutation, restock/sell operations, and aggregate reporting via pipelines59pipes (|>), lambdas
Kanban board: Card records stored by id in a Map slot, moved between columns by mutating a field and writing back55pipes (|>), lambdas
Order records with nested line-items, computed totals, and a state machine over the order lifecycle58a state machine, a sum type, pipes (|>), lambdas
Playlist as an ordered list of Track records50pipes (|>), lambdas
Functional record updates: with / without / merge produce new records without mutating the original51pipes (|>)
Gradebook: Student records each holding a list of Score records58pipes (|>), match, lambdas
Acronym / initials — first letter of each word, uppercased43pipes (|>), lambdas
CSV split/join — parse rows and project columns54pipes (|>), lambdas
CSV to Markdown table — render rows as a pipe-delimited table49pipes (|>), lambdas
Reverse word order — "hello world" -> "world hello"46pipes (|>), lambdas
Title case — capitalize the first letter of every word40pipes (|>), lambdas
Tokenizer — split text into normalized word tokens45pipes (|>), lambdas
Mini blog API with tag filtering. Posts carry a list of tags;61HTTP routes, pipes (|>), match, lambdas
Leaderboard API: submit a score, get the ranked top-N86HTTP routes, pipes (|>), match
Voting / poll API: fixed options, one counter per option, results sorted63HTTP routes, pipes (|>), match, lambdas
Webhook receiver + event log. POST /hook/<source> appends an event;71HTTP routes, pipes (|>), match, lambdas