ModularM
Modular2y ago
2 replies
hat

What does the asterisk in this mojo code mean? fn __init__(inout self, *, capacity: Int):

I'm curious about the source code for List (https://github.com/modularml/mojo/blob/main/stdlib/src/collections/list.mojo#L105C5-L105C47), which has this line
fn __init__(inout self, *, capacity: Int):
...

What does the asterisk * mean in the function's parameters?
GitHub
The Mojo Programming Language. Contribute to modularml/mojo development by creating an account on GitHub.
mojo/stdlib/src/collections/list.mojo at main · modularml/mojo
Was this page helpful?