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

Function

Position ( alist A, any a ) -> elt-ord^rat

Optional Arguments

Startelt-ord^rat (Default: 1) Determines the position where the search is started.
FailanyDetermines what to return in case of failure.

Description

Return the position of the occurence of `a' in `A' if `a in A' is true, and FAILURE otherwise.

Examples

A:=Alist([1,12],[3,4]); Position(A,3); Position(A,1,rec(Start:=2)); Position(A,"foo");
Built: Mon Nov 14 21:12:39 UTC 2005 on mack
The KANT Group