IndexPath - HiStructClient/femcad-doc GitHub Wiki

IndexPath is memory efficient data type for working with dot separated paths of indexes e.g. 0.2.0.4.6.3

Examples of working with IndexPath

p1 := Fcs.Types.IndexPath(33)

p2 := Fcs.Types.IndexPath([22,11])

p3 = p1+p2

str = p3.ToString()

t1 = p1 + p2 == p3

t2 = p3[ 2 ]

t3 = p3.Count

t4 = p5.Count

p5 = Fcs.Types.IndexPath.Parse("6 .7.8 .9 . 1.2.3",".,-+")

p6 = p5.Take(3)

koko = p6.ToString()

s1 = p5.StartsWith(p6)

s2 = p6.StartsWith(p5)