2 head - create a list of specified size from the head of a list
14 If 0 <= y <= size(x), head(x,y) returns a list of size y whose
15 elements in succession have values x[[0]]. x[[1]], ..., x[[y - 1]].
17 If y > size(x), head(x,y) is a copy of x.
19 If -size(x) < y < 0, head(x,y) returns a list of size (size(x) + y)
20 whose elements in succession have values x[[0]]. x[[1]], ...,
21 i.e. a copy of x from which the last -y members have been deleted.
23 If y <= -size(x), head(x,y) returns a list with no members.
25 For any integer y, x == join(head(x,y), tail(x,-y)).
28 > A = list(2, 3, 5, 7, 11)
31 list (2 members, 2 nonzero):
37 list (3 members, 3 nonzero):