Skip to content

Commit

Permalink
switch to using new Base.Iterators module on v0.6
Browse files Browse the repository at this point in the history
fixes deprecation warnings on v0.6. see JuliaLang/julia#18839 for more
details.
  • Loading branch information
tlnagy committed Nov 17, 2016
1 parent 2566c6b commit eba73e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/liblazy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ concat(xs::List, ys::List) =

import Base: length, map, reduce, filter, reverse, Predicate

if VERSION >= v"0.4.0"
import Base: drop, take
if VERSION >= v"0.6.0-dev.1015"
import Base.Iterators: drop, take
elseif VERSION >= v"0.4.0"
import Base: drop, take
end

export riffle, interpose, take, drop, takelast, droplast, takenth, takewhile, dropwhile,
Expand Down

0 comments on commit eba73e3

Please sign in to comment.