Skip to content

Commit

Permalink
the patch also
Browse files Browse the repository at this point in the history
  • Loading branch information
snichme committed Oct 1, 2024
1 parent af69bfd commit f55e03a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/stdlib/iterator.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module Iterator(T)
def self.empty
EmptyIterator(T).new
end

private struct EmptyIterator(T)
include Iterator(T)

def next
stop
end
end
end

0 comments on commit f55e03a

Please sign in to comment.