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

Function

Assoc ( alist A, any key ) -> any val

Optional Arguments

FailanyDetermines what to return in case of failure.

Description

Return the value associated with `key' in the alist `A'.

Examples

A:=Alist(["foo","someval1"],["bar","someval2"]); Assoc(A,"bar"); Assoc(A,25);
Built: Mon Nov 14 21:12:39 UTC 2005 on mack
The KANT Group