From: Jorge B. de A. <fic...@us...> - 2013-11-17 08:32:26
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Maxima CAS". The branch, master has been updated via a225ab68fabe5320d173b42fe03f7ef5add8b726 (commit) via 14c0ae16a61f425c2c227677cee0d728dc1e5f82 (commit) from 75a0fb6072e3ddc3d59b665db740454f33b18843 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit a225ab68fabe5320d173b42fe03f7ef5add8b726 Merge: 14c0ae1 75a0fb6 Author: Jorge Barros de Abreu <fic...@gm...> Date: Sun Nov 17 06:30:32 2013 -0200 Merge branch 'master' of ssh://git.code.sf.net/p/maxima/code commit 14c0ae16a61f425c2c227677cee0d728dc1e5f82 Author: Jorge Barros de Abreu <fic...@gm...> Date: Sun Nov 17 06:29:41 2013 -0200 Adding an example to assoc. Thanks to Rupert Swarbrick diff --git a/doc/info/Lists.texi b/doc/info/Lists.texi index 22b841d..9b74a08 100644 --- a/doc/info/Lists.texi +++ b/doc/info/Lists.texi @@ -175,6 +175,26 @@ the search stops at the first term starting with @code{z} and returns @code{2}. In @code{assoc(x, [[y,1]])}, there is no matching element, so @code{assoc} returns @code{false}. +@c ===beg=== +@c assoc (y, [[x,1], [y,2],[z,3]]); +@c assoc (z, [[x,1], [z,2], [z,3]]); +@c assoc (x, [[y,1]]); +@c ===end=== +@example +@group +(%i1) assoc(y, [[x, 1], [y, 2], [z, 3]]) +(%o1) 2 +@end group +@group +(%i2) assoc(z, [[x, 1], [z, 2], [z, 3]]) +(%o2) 2 +@end group +@group +(%i3) assoc(x, [[y, 1]]) +(%o3) false +@end group +@end example + @opencatbox @category{Lists} @category{Expressions} @closecatbox ----------------------------------------------------------------------- Summary of changes: doc/info/Lists.texi | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) hooks/post-receive -- Maxima CAS |