Mojo slice __ne__ Function

The Mojo slice __ne__ function “compares this slice to the other”.

Syntax

__ne__(self: Self, other: Self) -> Bool

Parameters

other (Self): the slice to compare to.

Return value

False if the start, end, and step values of this slice match the corresponding values of the other slice, and True otherwise.

Leave a Comment

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