005 mail merge

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

Dear ada, your balance is 420 credits. Ref: {{mystery}}.
Dear grace, your balance is 1337 credits. Ref: {{mystery}}.
Dear edsger, your balance is 7 credits. Ref: {{mystery}}.

Expected output

Dear ada, your balance is 420 credits. Ref: {{mystery}}.
Dear grace, your balance is 1337 credits. Ref: {{mystery}}.
Dear edsger, your balance is 7 credits. Ref: {{mystery}}.

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (recipients, capacity: 4, source: name: *std/string:String<std/string:instance!>, credits: i64)
flow ~new click a branch to expand · @labels scroll to their anchor
new (docs, capacity: 2, source: doc: *std/string:String<std/string:instance!>)
flow ~new click a branch to expand · @labels scroll to their anchor
new (curi, source: ri: 0[i64])
subflow ~out.append click a branch to expand · @labels scroll to their anchor
query (docs)
subflow ~emit click a branch to expand · @labels scroll to their anchor
query (recipients)
subflow ~merge click a branch to expand · @labels scroll to their anchor
split (s: t, sep: "{{")
flow ~from-page click a branch to expand · @labels scroll to their anchor
from-page (text: "")
flow ~from-page click a branch to expand · @labels scroll to their anchor
from-page (text: "ada")
flow ~from-page click a branch to expand · @labels scroll to their anchor
from-page (text: "grace")
flow ~from-page click a branch to expand · @labels scroll to their anchor
from-page (text: "edsger")
flow ~query click a branch to expand · @labels scroll to their anchor
query (recipients)

Test Configuration

MUST_RUN