Skip to content

Commit 8889473

Browse files
implement map for SmallVec
1 parent 93cb08d commit 8889473

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/small_array.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,4 @@ end
183183

184184
Base.any(f::Function, x::SmallVec) = any(f, x.data)
185185
Base.all(f::Function, x::SmallVec) = all(f, x.data)
186+
Base.map(f, x::SmallVec{T, V}) where {T, V} = SmallVec{T,V}(map(f, x.data))

0 commit comments

Comments
 (0)