on 6d45ede help sign in
44 lines 645 B history raw
1---
2navhome: /docs
3sort: 3
5---
7# `:knit`
9`{$knit p/(list (each @t seed))}`: text string with interpolation.
11### Produces
13A list-shaped string (`tape`) of the items in `p`, which are
14either constant `@t` multibyte UTF-8 strings (`cord`) or twigs
15producing a `tape`.
17### Syntax
19Irregular: `"foobar"`.
21Irregular: `"foo{(weld "moo" "baz")}bar"`.
23### Examples
25String:
27```
28~zod:dojo> "hello, world."
29"hello, world."
30```
32String with interpolation:
34```
35~zod:dojo> =+(planet="world" "hello, {planet}.")
36"hello, world."
37```
39String with interpolated prettyprinting:
41```
42~zod:dojo> =+(planet=%world "hello, {<planet>}.")
43"hello, %world."
44```