Skip to content

Commit 87b31f0

Browse files
committed
Updates for v1.0
1 parent c90aa55 commit 87b31f0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/compat.jl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ lastindex(cp::Chr) = 1
99
getindex(cp::Chr) = cp
1010
first(cp::Chr) = cp
1111
last(cp::Chr) = cp
12-
start(cp::Chr) = false
13-
next(cp::Chr, state) = (cp, true)
14-
done(cp::Chr, state) = state
12+
13+
@static if !NEW_ITERATE
14+
start(cp::Chr) = false
15+
next(cp::Chr, state) = (cp, true)
16+
done(cp::Chr, state) = state
17+
end
18+
1519
isempty(cp::Chr) = false
1620
in(x::AbsChar, y::Chr) = x == y
1721
in(x::Chr, y::AbsChar) = x == y

0 commit comments

Comments
 (0)