public void CouldUseVecSlice() { var arr = new[] { 1, 2, 3 }; var vecT = new Vec <int>(arr).Slice(1); var vec = new Vec(arr).Slice(1); Assert.AreEqual(2, vecT.Length); Assert.AreEqual(2, vec.Length); Assert.AreEqual(2, vecT[0]); Assert.AreEqual(3, vecT[1]); Assert.AreEqual(2, vec[0]); Assert.AreEqual(3, vec[1]); Assert.IsTrue(vec.As <int>().ReferenceEquals(vecT)); Assert.IsTrue(vecT.Span.SequenceEqual(vec.AsSpan <int>())); }