TU-Berlin → Inst. f. Mathematik → Algebra und Zahlentheorie → KASH → Documentation → Reference Manual
KASH3 Reference Manual
search    

Function

Apply ( func f, list A ) -> list r

Description

Apply 'f' to every member of `A' and replace the entry by the corresponding return value.
Note: The previous contents of `l' will be lost.

Examples

l:=[1,2,3,4]; Apply(i->3*i,l); l;
l:=[1,2,3,4]; Apply(IsEven,l); l;
Built: Mon Nov 14 21:12:39 UTC 2005 on mack
The KANT Group