html-ui.nodes-join
- description
- Join lists of HTML nodes with a text separator between them (like core.string-join)
- type
Fn(lists: List<List<@html.node>>, separator: String) -> List<@html.node>
- expression
fn(lists$0, separator$1) => @core.list-fold( T: List<@html.node>, A: Record{first: Boolean, out: List<@html.node>}, reducer: fn(acc$2, item$3) => { first: false, out: match $2.first { true => $3, false => @core.list-concat(left: @core.list-append(list: $2.out, item: @html.text(text: $1)), right: $3) } }, init: {first: true, out: []}, xs: $0 ).out
- visibility
- public
html-ui.nodes-join (project html-ui, branch main, snapshot Daaw3vbJhY15cDW6JsA4JuXvffjj_qFyxoZQMUM8hvQ) id: oo-iSkf97Hm2G268jbjHOJgcJxPoqrmngX0q6XZkej0 content hash: J5vvgsIIleJgrucGsQhxpW3dmZpdKzNyM59h2dPs6yU