focus expression text field at startup -> version 1.2
[LeanCalc.git] / help / delete
1 NAME
2     delete - delete an element from a list at a specified position
3
4 SYNOPSIS
5     delete(lst, index)
6
7 TYPES
8     lst         list
9     index       nonnegative integer less than the size of the list
10
11     return      type of the deleted element
12
13 DESCRIPTION
14      Deletes element at the specified index from list lst, and returns
15      the value of this element.
16
17 EXAMPLE
18     > lst = list(2,3,4,5)
19
20     list (4 elements, 4 nonzero):
21       [[0]] = 2
22       [[1]] = 3
23       [[2]] = 4
24       [[3]] = 5
25
26     > delete(lst, 2)
27             4
28     > print lst
29
30     list (3 elements, 3 nonzero):
31       [[0]] = 2
32       [[1]] = 3
33       [[2]] = 5
34
35 LIMITS
36     none
37
38 LINK LIBRARY
39     none
40
41 SEE ALSO
42     append, insert, pop, push, remove, size
43