2 segment - segment from and to specified elements of a list
14 For 0 <= y < size(x) and 0 <= z < size(x), segment(x, y, z)
15 returns a list for which the values of the elements are those
16 of the segment of x from x[[y]] to x[[z]]. If y < z, the
17 new list is in the same order as x; if y > z, the order is
20 If y < z, x == join(head(x,y), segment(x,y,z), tail(x, size(x) - z - 1)).
23 > A = list(2, 3, 5, 7, 11)
26 list (3 members, 3 nonzero):
33 list (3 members, 3 nonzero):