diff general/arrutils/forels.m @ 13:03694e5c8365

Reorganised some high order list functions to correct class-based method dispatch; fixed some docs.
author samer
date Wed, 16 Jan 2013 12:12:34 +0000
parents fbc0540a9208
children
line wrap: on
line diff
--- a/general/arrutils/forels.m	Mon Jan 14 22:21:11 2013 +0000
+++ b/general/arrutils/forels.m	Wed Jan 16 12:12:34 2013 +0000
@@ -1,19 +1,16 @@
-function forels(f,X,varargin)
 % forels - do an action for each element of an array in order
 %
 % forels :: 
 %    (A->action) ~'action to apply to each element', 
 %    [[Size]->A] ~'array of elements of type',
-%    options {
-%       pause :: bool/0
-%       drawnow :: bool/1
-%    }           ~'see ITERATE for more options'
-% -> action.
+%    options iterate_options
+% => void.
 %
 % Note, the array can be multidimensional - the standard order
 % cycles through the earlier indices before the later ones, eg
 % rows, then columns, then slices etc.
 
+function forels(f,X,varargin)
 	N=numel(X);
 	iterate(@g,1,varargin{:});