Skip to content

Commit

Permalink
make isempty(itr) work for general iterables (as mentioned in #5797)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Feb 16, 2014
1 parent 1e74ecc commit 1375359
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 1375359

Please sign in to comment.