Document (std stream), port->stream and run/stream

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Linus Björnstam 2026-11-15 21:59:22 +01:00
parent 6634469ae8
commit 5e07283404
4 changed files with 71 additions and 5 deletions

View file

@ -1530,7 +1530,7 @@ There are three ways to repeat something in bjolang. A named @code{let} (or any
@subsubsection{loop}
A @code{loop} is a list of clauses that run in order, once per element. @code{(:for x coll)} walks anything that can be walked: lists, vecs, arrays, maps, strings, ranges and sequences. An accumulator collects a result, and @code{=> expr} says what the loop returns:
A @code{loop} is a list of clauses that run in order, once per element. @code{(:for x coll)} walks anything that can be walked: lists, vecs, arrays, maps, strings, ranges, sequences, and streams, whose values come from work that suspends (Part 2, Concurrency). An accumulator collects a result, and @code{=> expr} says what the loop returns:
@codeblock[#:lang "bjolang"]|{
(loop (:for x (list 1 2 3 4 5 6))