Skip to content

Commit

Permalink
fix details
Browse files Browse the repository at this point in the history
Signed-off-by: martinvuyk <[email protected]>
  • Loading branch information
martinvuyk committed Oct 22, 2024
1 parent e8ffe4e commit cf47de2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions stdlib/src/builtin/range.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -691,14 +691,17 @@ trait _Iterator:
# fn __has_more__(self) -> Bool:
# ...

# fn __bool__(self) -> Bool:
# return self.__has_more__()


# trait _Iterable[T: AnyType]:
# fn __iter__(ref [_]self) -> _Iterator[T]:
# ...


# fn iter[T: AnyType, I: _Iterable[T]](value: T) -> _Iterator[T]:
# ...
# fn iter[T: _Iterable](ref [_]value: T) -> _Iterator[T]:
# return value.__iter__()


fn iter[T: _Iterator](value: T) -> T:
Expand Down

0 comments on commit cf47de2

Please sign in to comment.