Array.intersperse3kaya
Place a separator between each element of an array
Usage
[a] intersperse( a sep, [a] xs )
Arguments
sep The separator
sep The elements
Overview
Place the separator sep between each element of xs and return the resulting array.
-
xs = [1,2,3,4];
ys = intersperse(0,xs);
// ys = [1,0,2,0,3,0,4]
Releases
4 releases since Debian 5.0 (Lenny); the text changed 3 times.