3 ms·
Generally a generator expression would be more idiomatic in Python than map/lambda. html(t"<ul>{(t"<li>{i}</li>" for i in items)}</ul>")
by Latty 2y ago
Generally a generator expression would be more idiomatic in Python than map/lambda.
html(t"<ul>{(t"<li>{i}</li>" for i in items)}</ul>")