Repository navigation
|
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 |
Answered by
sliemeobn
Sep 13, 2024
Replies: 2 comments 3 replies
|
Hi @coenttb, thanks for getting in touch! I had planned to add a |
1 reply
Answer selected by
sliemeobn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi @coenttb,
PR #26
wdyt?