Skip to content

Commit

Permalink
Merge branch 'nightly' into add-externalcall-variadicpack-overload
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvuyk authored Nov 6, 2024
2 parents 872a192 + cf570c3 commit af22094
Show file tree
Hide file tree
Showing 12 changed files with 350 additions and 350 deletions.
220 changes: 110 additions & 110 deletions examples/magic.lock

Large diffs are not rendered by default.

218 changes: 109 additions & 109 deletions examples/notebooks/magic.lock

Large diffs are not rendered by default.

220 changes: 110 additions & 110 deletions magic.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions stdlib/src/builtin/builtin_list.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ struct _VariadicListIter[type: AnyTrivialRegType]:
return self.src[self.index - 1]

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

fn __len__(self) -> Int:
Expand Down Expand Up @@ -251,7 +251,7 @@ struct _VariadicListMemIter[
)

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

fn __len__(self) -> Int:
Expand Down
20 changes: 10 additions & 10 deletions stdlib/src/builtin/range.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct _ZeroStartingRange(Sized, ReversibleRange, _IntIterable):
return self.end - curr

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

@always_inline
Expand Down Expand Up @@ -97,7 +97,7 @@ struct _SequentialRange(Sized, ReversibleRange, _IntIterable):
return start

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

@always_inline
Expand Down Expand Up @@ -137,7 +137,7 @@ struct _StridedRangeIterator(Sized):
return result

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0


Expand Down Expand Up @@ -165,7 +165,7 @@ struct _StridedRange(Sized, ReversibleRange, _StridedIterable):
return result

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

@always_inline
Expand Down Expand Up @@ -339,7 +339,7 @@ struct _UIntZeroStartingRange(UIntSized):
return self.end - curr

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

@always_inline
Expand Down Expand Up @@ -370,7 +370,7 @@ struct _UIntStridedRangeIterator(UIntSized):
return result

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0


Expand Down Expand Up @@ -410,7 +410,7 @@ struct _UIntStridedRange(UIntSized, _UIntStridedIterable):
return result

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

@always_inline
Expand Down Expand Up @@ -479,7 +479,7 @@ struct _ZeroStartingScalarRange[type: DType]:
return self.end - curr

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

@always_inline
Expand Down Expand Up @@ -516,7 +516,7 @@ struct _SequentialScalarRange[type: DType]:
return start

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

@always_inline
Expand All @@ -541,7 +541,7 @@ struct _StridedScalarRangeIterator[type: DType]:
var step: Scalar[type]

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
# If the type is unsigned, then 'step' cannot be negative.
@parameter
if type.is_unsigned():
Expand Down
6 changes: 3 additions & 3 deletions stdlib/src/collections/dict.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ struct _DictEntryIter[
return Pointer.address_of(opt_entry_ref[].value())

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

fn __len__(self) -> Int:
Expand Down Expand Up @@ -145,7 +145,7 @@ struct _DictKeyIter[
return Pointer.address_of(self.iter.__next__()[].key)

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

fn __len__(self) -> Int:
Expand Down Expand Up @@ -195,7 +195,7 @@ struct _DictValueIter[
)

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

fn __len__(self) -> Int:
Expand Down
2 changes: 1 addition & 1 deletion stdlib/src/collections/inline_list.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct _InlineListIter[
return Pointer.address_of(self.src[][self.index])

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

fn __len__(self) -> Int:
Expand Down
2 changes: 1 addition & 1 deletion stdlib/src/collections/list.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct _ListIter[
return Pointer.address_of(self.src[][self.index])

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

fn __len__(self) -> Int:
Expand Down
2 changes: 1 addition & 1 deletion stdlib/src/collections/vector.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct _VecIter[
return deref(self.vec, self.i - 1)

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

fn __len__(self) -> Int:
Expand Down
2 changes: 1 addition & 1 deletion stdlib/src/python/python_object.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ struct _PyIter(Sized):
return current

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

fn __len__(self) -> Int:
Expand Down
2 changes: 1 addition & 1 deletion stdlib/src/utils/span.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ struct _SpanIter[
return Pointer.address_of(self.src[self.index])

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

@always_inline
Expand Down
2 changes: 1 addition & 1 deletion stdlib/src/utils/string_slice.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ struct _StringSliceIter[
)

@always_inline
fn __hasmore__(self) -> Bool:
fn __has_next__(self) -> Bool:
return self.__len__() > 0

fn __len__(self) -> Int:
Expand Down

0 comments on commit af22094

Please sign in to comment.