stdlib/builtin/enumerable.rbs in rbs-0.3.1 vs stdlib/builtin/enumerable.rbs in rbs-0.4.0
- old
+ new
@@ -383,10 +383,10 @@
def each_entry: () -> ::Enumerator[Elem, Return]
| () { (Elem arg0) -> untyped } -> self
# variadic type parameter is not supported yet
- # https://github.com/ruby/ruby-signature/issues/21
+ # https://github.com/ruby/rbs/issues/21
def zip: [Elem2, Return2] (::Enumerable[Elem2, Return2] enum) -> ::Array[[Elem, Elem2 | nil]]
| [U, Elem2, Return2] (::Enumerable[Elem2, Return2]) { ([Elem, Elem2 | nil]) -> U } -> nil
def chunk: () -> ::Enumerator[Elem, Return]
| [U] () { (Elem elt) -> U } -> ::Enumerator[[U, Array[Elem]], void]