Pablo

shift()

Removes the first element in the collection and returns it, wrapped in a new collection.

var svg = Pablo(demoElement).svg({height:100}),
    collection = Pablo(['circle', 'line', 'rect']);

// Removes and returns the first element, the <circle>
collection.shift()
    .attr({cx:50, cy:50, r:50})
    .appendTo(svg);

alert(collection.length); // 2
Painting is just another way of keeping a diary.
Pablo Picasso