buffer.cdc~
./src/buffer.cdc~ · 392 B
From the archive cold-turkey.tar.gz
Download the archive « Back to the archive contents
new object $buffer: $libraries;
var $root inited = 1;
public method .from_list() {
arg list;
var buf, x;
buf = `[];
for x in [1 .. list.length()]
buf = buf.add(list[x]);
return buf;
};
public method .to_list() {
arg buf;
var idx, list;
list = [];
for idx in [1 .. buf.length()]
list = list + [buf[idx]];
return list;
};