1Array.intersperse(3kaya)     Kaya module reference    Array.intersperse(3kaya)
2
3
4

NAME

6       Array::intersperse - Place a separator between each element of an array
7

SYNOPSIS

9       [a] intersperse( a sep, [a] xs )
10

ARGUMENTS

12       sep The separator
13
14       sep The elements
15

DESCRIPTION

17       Place  the  separator  sep  between  each  element of xs and return the
18       resulting array.
19
20
21    xs = [1,2,3,4];
22    ys = intersperse(0,xs);
23    // ys = [1,0,2,0,3,0,4]
24

AUTHORS

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

LICENSE

30       The  Kaya  standard  library  is free software; you can redistribute it
31       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
32       License  (version  2.1  or  any later version) as published by the Free
33       Software Foundation.
34
35
36
37Kaya                             December 2010        Array.intersperse(3kaya)
Impressum