@@ -12,7 +12,7 @@ using .Base:
12
12
@inline , Pair, AbstractDict, IndexLinear, IndexCartesian, IndexStyle, AbstractVector, Vector,
13
13
tail, tuple_type_head, tuple_type_tail, tuple_type_cons, SizeUnknown, HasLength, HasShape,
14
14
IsInfinite, EltypeUnknown, HasEltype, OneTo, @propagate_inbounds , Generator, AbstractRange,
15
- LinearIndices, (:), | , + , - , != = , ! , <= , < , missing , map, any
15
+ LinearIndices, (:), | , + , - , != = , ! , <= , < , missing , map, any, @boundscheck , @inbounds
16
16
17
17
import . Base:
18
18
first, last,
@@ -1100,7 +1100,7 @@ length(s::Stateful) = length(s.itr) - s.taken
1100
1100
Returns the one and only element of collection `x`, and throws an `ArgumentError` if the
1101
1101
collection has zero or multiple elements.
1102
1102
"""
1103
- Base . @propagate_inbounds function only (x)
1103
+ @propagate_inbounds function only (x)
1104
1104
i = iterate (x)
1105
1105
@boundscheck if i === nothing
1106
1106
throw (ArgumentError (" Collection is empty, must contain exactly 1 element" ))
0 commit comments