Mojo ListLiteral get Function

The Mojo ListLiteral get() function “gets a list element at provided index”.


get[i: Int, T: AnyType](self: Self) -> T


i (Int): the element index.

T (AnyType): the element type.

Return value

The element at the given index.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.