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

Function

[] ( string S, elt-ord^rat pos ) -> char

Syntax

<string>[pos]

Description

Return the character at the `pos'-th position of `S'.
Note: The length of `S' has to be at least `pos' and `pos' must not be negative nor 0.

Examples

s:="foo not bar"; s[2];

Built: Mon Nov 14 21:12:39 UTC 2005 on mack
The KANT Group