Search
Star
1.4k
Feedback
Setup for Free
M
Modular
•
2y ago
•
12 replies
Orwink
Why doesn't this work for creating lists?
fn main() -> None: var any_list = List[Int](range(1, 10_000_000))
fn main() -> None: var any_list = List[Int](range(1, 10_000_000))
Modular
Join
This server is the home of the MAX and Mojo community! Join us to chat about all things Modular.
20,311
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
fn
main
() ->
None
:
var
any_list
=
List[Int](
range
(
1
,
10_000_000
))
fn
main
() ->
None
:
var
any_list
=
List[Int](
range
(
1
,
10_000_000
))
Similar Threads
`if` Statement doesn't work??? :astonished:
M
Modular / questions
3y ago
Why doesn't __bool__ allow explicit conversion?
M
Modular / questions
3y ago
Why doesn't fn() coerce to fn() capturing
M
Modular / questions
3y ago
why does this String init work without len?
M
Modular / questions
16mo ago