KASH3 Ref - Last

TU-Berlin | → | Inst. f. Mathematik | → | Algebra und Zahlentheorie | → | KASH | → | Documentation | → | Reference Manual
| KASH3 Reference Manual
Introduction | Reference Manual | Index
| search
| ### Function Last ( seq() s, func pred ) -> any ### Optional Arguments
Fail | any |  | Determines what to return in case of failure.
### Description Find the last element which suffices the predicate function `pred' and return it. Note: Apparently `pred' must have `-> elt-alg^boo' out-signature. ### Examples Last(Sequence([1..100]),IsPrime); Last(Sequence([2,4,6,8,12,50,100]),i->i mod 3=0); ### See also First ( seq(), func ) -> any
| Built: Mon Nov 14 21:12:39 UTC 2005 on mack