Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit 74476cf

Browse files
colbecararslan
authored andcommitted
Update predicates.jl for function isprime() (#227)
1 parent c3fe3a2 commit 74476cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/predicates.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
numeric_predicates = (:(Base.iseven), :(Base.ispow2), :(Base.isfinite), :(Base.isprime), :(Base.isinf), :(Base.isodd))
2-
1+
numeric_predicates = [:(Base.iseven), :(Base.ispow2), :(Base.isfinite), :(Base.isinf), :(Base.isodd)]
2+
isdefined(Base, :isprime) && push!(numeric_predicates, :(Base.isprime))
3+
34
type_predicates = (:(Base.isinteger), :(Base.isreal))
45

56
container_predicates = (:(Base.isempty),)

0 commit comments

Comments
 (0)