2 push - push one or more values into the front of a list
8 x lvalue whose value is a list
14 If after evaluation of y_0, y_1, ..., x is a list with
15 contents (x_0, x_1, ...), then after push(x, y_0, y_1, ..., y_n-1),
16 x has contents (y_n-1, ..., y_1, y_0, x_0, x_1, ...), i.e. the
17 values of y_0, y_1, ... are inserted in succession at the beginning
20 This function is equivalent to insert(x, 0, y_n-1, ..., y_1, y_0).
26 list (2 elements, 2 nonzero):
33 list (4 elements, 4 nonzero):
39 ; push (A, pop(A), pop(A))
42 list (4 elements, 4 nonzero):
49 push() can have at most 100 arguments
55 append, delete, insert, islist, pop, remove, rsearch, search,
58 ## Copyright (C) 1999-2006 Landon Curt Noll
60 ## Calc is open software; you can redistribute it and/or modify it under
61 ## the terms of the version 2.1 of the GNU Lesser General Public License
62 ## as published by the Free Software Foundation.
64 ## Calc is distributed in the hope that it will be useful, but WITHOUT
65 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
66 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
67 ## Public License for more details.
69 ## A copy of version 2.1 of the GNU Lesser General Public License is
70 ## distributed with calc under the filename COPYING-LGPL. You should have
71 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
72 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
74 ## @(#) $Revision: 30.1 $
75 ## @(#) $Id: push,v 30.1 2007/03/16 11:10:42 chongo Exp $
76 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/push,v $
78 ## Under source code control: 1994/03/19 03:13:20
79 ## File existed as early as: 1994
81 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
82 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/