2 remove - remove the last member of a list
8 lst lvalue whose current value is a list
13 If lst has no members, remove(lst) returns the null value and does
16 If lst has n members where n > 0, remove(lst) returns the value of
17 lst[[n-1]] and deletes this value from the end of the lst, so that
18 lst now has n - 1 members and for 0 <= i < n - 1, lst[[i]] returns
19 what it would have returned before the remove operation.
22 ; lst = list(2,"three")
24 list (2 elements, 2 nonzero):
32 list (1 elements, 1 nonzero):
38 list (0 elements, 0 nonzero)
41 list (0 elements, 0 nonzero)
50 append, delete, insert, islist, pop, push, rsearch, search,
53 ## Copyright (C) 1999-2006 Landon Curt Noll
55 ## Calc is open software; you can redistribute it and/or modify it under
56 ## the terms of the version 2.1 of the GNU Lesser General Public License
57 ## as published by the Free Software Foundation.
59 ## Calc is distributed in the hope that it will be useful, but WITHOUT
60 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
61 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
62 ## Public License for more details.
64 ## A copy of version 2.1 of the GNU Lesser General Public License is
65 ## distributed with calc under the filename COPYING-LGPL. You should have
66 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
67 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
69 ## @(#) $Revision: 30.1 $
70 ## @(#) $Id: remove,v 30.1 2007/03/16 11:10:42 chongo Exp $
71 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/remove,v $
73 ## Under source code control: 1996/03/12 23:10:01
74 ## File existed as early as: 1996
76 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
77 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/