We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c90aa55 commit 87b31f0Copy full SHA for 87b31f0
src/compat.jl
@@ -9,9 +9,13 @@ lastindex(cp::Chr) = 1
9
getindex(cp::Chr) = cp
10
first(cp::Chr) = cp
11
last(cp::Chr) = cp
12
-start(cp::Chr) = false
13
-next(cp::Chr, state) = (cp, true)
14
-done(cp::Chr, state) = state
+
+@static if !NEW_ITERATE
+ start(cp::Chr) = false
15
+ next(cp::Chr, state) = (cp, true)
16
+ done(cp::Chr, state) = state
17
+end
18
19
isempty(cp::Chr) = false
20
in(x::AbsChar, y::Chr) = x == y
21
in(x::Chr, y::AbsChar) = x == y
0 commit comments