veclst = {...many many vectors...};
veclst = insert(veclst, vec, -1); // Slower
veclst += {vec}; // Fast append a vector
veclst = insert(veclst, {vec1, vec2}, -1); // Slower
veclst += {vec1, vec2}; // Fast append multiple vectors at once
vectlst = insert(veclst, vec, 0); // Slower
veclst >>= 1; // Make room for prepend
veclst[0] = vec; // Set prepended value
str = insert("string one", "string two", 0); // Slow prepend
str = "string two" + "string one"; // Faster
str = insert("string one", "string two", -1); // Slow append
str = "string one" + "string two"; // Faster veclist[0] = [-, -, 1.0]; /* Pen-up */
veclist[1] = [0.0, 0.0, -]; /* Left-bottom corner of text */
/* Strokes of the glyphs follow */
veclist[2] = [x, y, -]; /* Entry point for first stroke */
veclist[3] = [-, -, 0.0]; /* Pen-down */
... lots of entries up to n-2 ...
veclist[n-1] = [-, -, 1.0]; /* Pen-up */
veclist[n] = [end_x_pos, 0.0, -]; /* Final position would be start of next glyph */ square = {[-1,-1], [-1,1], [1,1], [1,-1]};
/* Declare and set the order of the layers */
layerstack("layer1", "layer2", "layer3");
layer(2); /* Set the active layer */
goto(square[-1] * 20.0mm);
move(square * 20.0mm);
layer(3);
goto(square[-1] * 30.0mm);
move(square * 30.0mm);
layer("layer1"); /* Can also be set by name */
goto(square[-1] * 10.0mm);
move(square * 10.0mm);