From 3474e175dc1c7bf7e8e38323c0302f9b8da2570b Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Tue, 9 Jun 2009 22:52:07 +0000 Subject: [PATCH] Add apply() to help file --- game/txt/hlp/cobra_func.hlp | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/game/txt/hlp/cobra_func.hlp b/game/txt/hlp/cobra_func.hlp index 542d08e..518c895 100644 --- a/game/txt/hlp/cobra_func.hlp +++ b/game/txt/hlp/cobra_func.hlp @@ -62,11 +62,12 @@ & Attribute functions All these functions access attributes on an object. - aposs() default() edefault() eval() filter() - filterbool() fold() foreach() get() grep() - grepi() lattr() nattr() obj() poss() - regrep() regrepi() subj() udefault() ufun() - uldefault() ulocal() v-function xget() zfun() + aposs() apply() default() edefault() eval() + filter() filterbool() fold() foreach() get() + grep() grepi() lattr() nattr() obj() + poss() regrep() regrepi() subj() udefault() + ufun() uldefault() ulocal() v-function xget() + zfun() See also: ATTRIBUTES, NON-STANDARD ATTRIBUTES & Bitwise functions @@ -480,6 +481,16 @@ Returns the absolute possessive pronoun - his/hers/its/theirs - for an object. +& APPLY() + apply([/], [, ]) + + Apply the given function, which may be a #lambda function, to the list + of arguments, the elements of which are separated by a space or by the + given one-character delimiter. + + apply(function,1 2 3) is equivalent to ufun(function,1,2,3) + + See also: ufun() & ART() art() -- 2.30.2