@@ -85,7 +85,7 @@ Base.@propagate_inbounds function Base.pop!(x::Backing{T}) where {T}
8585 v
8686end
8787
88- function Base. any (f:: Function , x:: Backing )
88+ function Base. any (f:: F , x:: Backing ) where {F <: Function }
8989 if x. len == 0
9090 return false
9191 elseif x. len == 1
@@ -98,7 +98,7 @@ function Base.any(f::Function, x::Backing)
9898 _unreachable ()
9999end
100100
101- function Base. all (f:: Function , x:: Backing )
101+ function Base. all (f:: F , x:: Backing ) where {F <: Function }
102102 if x. len == 0
103103 return true
104104 elseif x. len == 1
@@ -111,7 +111,7 @@ function Base.all(f::Function, x::Backing)
111111 _unreachable ()
112112end
113113
114- function Base. map (f, x:: Backing{T} ) where {T}
114+ function Base. map (f:: F , x:: Backing{T} ) where {F, T}
115115 if x. len == 0
116116 # StaticArrays does this, so we are only as bad as they are
117117 return Backing {Core.Compiler.return_type(f, Tuple{T})} ()
307307
308308Base. iterate (x:: SmallVec ) = iterate (x. data)
309309Base. iterate (x:: SmallVec , st:: Int ) = iterate (x. data, st)
310- Base. any (f:: Function , x:: SmallVec ) = any (f, x. data)
311- Base. all (f:: Function , x:: SmallVec ) = all (f, x. data)
312- function Base. map (f, x:: SmallVec{T, Vector{T}} ) where {T}
310+ Base. any (f:: F , x:: SmallVec ) where {F <: Function } = any (f, x. data)
311+ Base. all (f:: F , x:: SmallVec ) where {F <: Function } = all (f, x. data)
312+ function Base. map (f:: F , x:: SmallVec{T, Vector{T}} ) where {F, T}
313313 arr = map (f, x. data)
314314 SmallVec {eltype(arr),Vector{eltype(arr)}} (arr)
315315end
0 commit comments