Mojo Slice__len__ Function

Mojo slice __len__ function “returns the slice length”.

Syntax

__len__(self: Self) -> Int

Return value

It returns the length of the slice.

Leave a Comment

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