about summary refs log blame commit diff stats
path: root/cpp/021arithmetic
blob: a5ca095ae11c5b2384c8f382b1b264369e178c40 (plain) (tree)
ass="w"> append buf, [ -> ] # and recurse remaining:num, optional-ingredient-found?:bool <- next-ingredient { break-if optional-ingredient-found? # unlimited recursion buf <- to-buffer next, buf return } { break-unless remaining # limited recursion remaining <- subtract remaining, 1 buf <- to-buffer next, buf, remaining return } # past recursion depth; insert ellipses and stop append buf, [...] ] scenario stash-empty-list [ local-scope x:&:list:num <- copy 0 run [ stash x ] trace-should-contain [ app: [] ] ]