Browse files

make isempty(itr) work for general iterables (as mentioned in #5797)

  • Loading branch information...
1 parent 1e74ecc commit 13753592b0d0bf3282ae1e83e1eb247b0eff50df @stevengj stevengj committed Feb 15, 2014
Showing with 2 additions and 0 deletions.
  1. +2 −0 base/iterator.jl
View
2 base/iterator.jl
@@ -1,3 +1,5 @@
+isempty(itr) = done(itr, start(itr))
+
# enumerate
immutable Enumerate{I}

0 comments on commit 1375359

Please sign in to comment.