mojo
mojo copied to clipboard
[mojo-stdlib] Make use of variadic initializer for `List` where applicable
Review Mojo's priorities
- [X] I have read the roadmap and priorities and I believe this request falls within the priorities.
What is your request?
For example, replace things like
var l = List[String]()
l.append("one")
l.append("two")
l.append("three")
with
var l = List[String]("one", "two", "three")
This is a bit shorter and easier to read. One such example is here
What is your motivation for this change?
Using new standard library constructor for List
to simplify/shorten existing code.
Any other details?
No response