In this code snippet:
using StaticArrays
Vec2f = SVector{2, Float32}
Vec3f = SVector{3, Float32}
a = Vec3f(1, 2, 3)
b = a[1:2]
c = a[[true, false, true]]
b and c type is Array{Float32,1}. How do I make these transformations to get b and c of type Vec2f?