From 9958edd9d61f13b181a9f44ec12f713d5819451a Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 25 Apr 2016 08:54:51 -0400 Subject: actor: Add apply-effects procedure. * sly/actor.scm (apply-effects): New procedure. * doc/api/scripting.texi (Actors): Document it. --- doc/api/scripting.texi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc') diff --git a/doc/api/scripting.texi b/doc/api/scripting.texi index 299cf0f..77ef734 100644 --- a/doc/api/scripting.texi +++ b/doc/api/scripting.texi @@ -157,6 +157,12 @@ new actor containing the value returned from @var{proc}. The actor's action remains unchanged. @end deffn +@deffn {Scheme Procedure} apply-effects @var{effects} @var{world} +Apply each effect procedure in @var{effects} using @var{world} as an +initial value. Each successive effect is applied with the world +returned by the previous effect. +@end deffn + @node Actions @subsection Actions -- cgit v1.2.3