| |||||||||||||
KASH3 Reference Manual | |||||||||||||
| |||||||||||||
FunctionMapAlist
(
alist A,
func f
)
Description`f' is expected to take two arguments, the first one is bound to the key of an alist element, the second one is bound to its association. ExamplesA:=Alist([1,"foo"],[2,"bar"],[3,"foobar"]);
f:=function(key,val)
Print("key is ",key,", val is ",val,"\n");
end;
MapAlist(A,f);
See also | |||||||||||||
Built:
Mon Nov 14 21:12:39 UTC 2005 on mackThe KANT Group |