Mojo ListLiteral get Function

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

Syntax

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

Parameters

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.