on 3c19574 help sign in
44 lines 654 B history raw
1---
2navhome: /docs/
3sort: 3
4title: Knit
5---
7# Knit
9`[%knit p=(list (each @t hoon))]`: 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 hoons
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```