failed attempts to intercept copy command when the cursor is in the empty text field...
[LeanCalc.git] / help / tail
1 NAME
2    tail - create a list of specified size from the tail of a list
3
4 SYNOPSIS
5    tail(x, y)
6
7 TYPES
8     x           list
9     y           int
10
11     return      list
12
13 DESCRIPTION
14     If 0 <= y <= size(x) == n, tail(x,y) returns a list of size y whose
15     elements in succession have values x[[n - y]]. x[[1]], ..., x[[n - 1]].
16
17     If y > size(x), tail(x,y) is a copy of x.
18
19     If -size(x) < y < 0, tail(x,y) returns a list of size (size(x) + y)
20     whose elements in succession have values x[[-y]]. x[[-y + 1]], ...,
21     x[[size(x) - 1]], i.e. a copy of x from which the first -y members
22     have been deleted.
23
24     If y <= -size(x), tail(x,y) returns a list with no members.
25
26     For any integer y, x == join(head(x,-y), tail(x,y)).
27
28 EXAMPLE
29     > A = list(2, 3, 5, 7, 11)
30     > tail(A, 2)
31
32     list (2 members, 2 nonzero):
33           [[0]] = 7
34           [[1]] = 11
35
36     > tail(A, -2)
37
38     list (3 members, 3 nonzero):
39           [[0]] = 5
40           [[1]] = 7
41           [[2]] = 11
42
43 LIMITS
44     none
45
46 LINK LIBRARY
47     none
48
49 SEE ALSO
50     head, segment
51