1Strings.tail(3kaya)          Kaya module reference         Strings.tail(3kaya)
2
3
4

NAME

6       Strings::tail - Get all but the first character in a String
7

SYNOPSIS

9       String tail( String str )
10

ARGUMENTS

12       s The String
13

DESCRIPTION

15       Get  all  but the first character in a String. Useful with Strings.head
16       (3kaya) for iteration over strings.
17
18
19    str = "abcdef";
20    i = 0;
21    do {
22      i += Int(head(str));
23      str = tail(str);
24    } while (length(str) > 0);
25

AUTHORS

27       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
28       (kaya@kayalang.org). For further information see http://kayalang.org/
29

LICENSE

31       The  Kaya  standard  library  is free software; you can redistribute it
32       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
33       License  (version  2.1  or  any later version) as published by the Free
34       Software Foundation.
35
37       Strings.head (3kaya)
38       Strings.ltruncate (3kaya)
39
40
41
42Kaya                             December 2010             Strings.tail(3kaya)
Impressum