Skip to content

Commit c7969de

Browse files
authored
Merge pull request #58 from ararslan/aa/predicate
Work around removal of Base.Predicate
2 parents 56ca09d + 19236b9 commit c7969de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/liblazy.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ concat(xs::List, ys::List) =
4343
# Manipulation
4444
# ------------
4545

46-
import Base: length, map, reduce, filter, reverse, Predicate
46+
import Base: length, map, reduce, filter, reverse
4747

4848
if VERSION >= v"0.6.0-dev.1015"
4949
import Base.Iterators: drop, take
@@ -181,8 +181,8 @@ import Base: any, all
181181
isempty(xs) == isempty(ys) &&
182182
(isempty(xs) || first(xs) == first(ys) && tail(xs) == tail(ys))
183183

184-
any(f::Predicate, xs::List) = @>> xs map(f) any
184+
any(f, xs::List) = @>> xs map(f) any
185185
@rec any(xs::List) = isempty(xs) ? false : first(xs) || any(tail(xs))
186186

187-
all(f::Predicate, xs::List) = @>> xs map(f) all
187+
all(f, xs::List) = @>> xs map(f) all
188188
@rec all(xs::List) = isempty(xs) ? true : first(xs) && all(tail(xs))

0 commit comments

Comments
 (0)