Skip to content

Commit

Permalink
Merge pull request #5827 from stevengj/isempty
Browse files Browse the repository at this point in the history
RFC: make isempty(itr) work for general iterables
  • Loading branch information
JeffBezanson committed Feb 16, 2014
2 parents 2fdefe2 + 1375359 commit e924901
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/iterator.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
isempty(itr) = done(itr, start(itr))

# enumerate

immutable Enumerate{I}
Expand Down

0 comments on commit e924901

Please sign in to comment.