From: Dan S. <ds...@us...> - 2002-12-06 16:36:24
|
Update of /cvsroot/maxima/maxima/doc/info In directory sc8-pr-cvs1:/tmp/cvs-serv4944/maxima/doc/info Modified Files: Lists.texi Log Message: Added documentation for every. Index: Lists.texi =================================================================== RCS file: /cvsroot/maxima/maxima/doc/info/Lists.texi,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Lists.texi 29 Nov 2002 01:48:11 -0000 1.4 +++ Lists.texi 6 Dec 2002 16:36:12 -0000 1.5 @@ -37,7 +37,7 @@ @node Definitions for Lists, , Introduction to Lists, Lists @section Definitions for Lists -@c @node APPEND, ATOM, Lists, Lists +@c @node APPEND, ASSOC, Lists, Lists @c @unnumberedsec @defun APPEND (list1, list2, ...) returns a single list of the elements of @@ -46,6 +46,17 @@ Do EXAMPLE(APPEND); for an example. @end defun +@c @node ASSOC, ATOM, APPEND, Lists +@c @unnumberedsec +@defun ASSOC (exp) +This function searches for the key in the left hand side of the input list +of the form [x,y,z...] where each of the list elements is a expression of +a binary operand and 2 elements. For example x=1, 2^3, [a,b] etc. +The key checked againts the first operand and and returns the second +operand if the key is found. +If the key is not found it either returns the default value if supplied or +false. +@end defun @c @node ATOM, CONS, APPEND, Lists @c @unnumberedsec @defun ATOM (exp) @@ -84,7 +95,7 @@ occurrences of exp1 in exp2 then all occurrences will be deleted. @end defun -@c @node ENDCONS, FIRST, DELETE, Lists +@c @node ENDCONS, EVERY, DELETE, Lists @c @unnumberedsec @defun ENDCONS (exp, list) returns a new list consisting of the elements of @@ -92,7 +103,15 @@ ENDCONS(X, F(A,B,C)); -> F(A,B,C,X). @end defun -@c @node FIRST, FLATTEN, ENDCONS, Lists +@c @node EVERY, FIRST, DELETE, Lists +@c @unnumberedsec +@defun EVERY (exp) +This function takes a list, or a positive number of arguments and returns +true if all its arguments are not false. + +@end defun + +@c @node FIRST, FLATTEN, EVERY, Lists @c @unnumberedsec @defun FIRST (exp) SECOND (exp) .. TENTH (exp) yields the first part of exp which may result in the first |