-
Dear Sliemeobn, extension List: HTML {
public var content: some HTML {
ul {
for item in items {
item
}
}
}
} This compiles and the syntax already looks quite nice. However, in some circumstances I prefer another way of writing this: extension List: HTML {
public var content: some HTML {
ul {
items.map { $0 }
}
}
} Can you make this syntax work? I'm not an expert on resultBuilders, but I think this requires another build-block? Thank you in advance for your time. Best, Coen |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @coenttb, thanks for getting in touch! I had planned to add a |
Beta Was this translation helpful? Give feedback.
hi @coenttb,
PR #26
wdyt?