Implement source.alter( transform [, options] ):

Alters a set by altering all values by transform().

Parameters:
  - transform: (Function) a function which signature is:
      transform( value [, position [, values [, options ] ] ] )

      tranform must return one object.

  - options: (Object)

Generate transform code optimized for large datasets:

  this.transform = function( values, options ) {
    var i = -1, l = values.length, r = [], t = transform;

    var ul = l - l % 6 - 1;

    while( i < ul ) {
      r.push( t( values[ ++i ] ) );
      r.push( t( values[ ++i ] ) );
      r.push( t( values[ ++i ] ) );
      r.push( t( values[ ++i ] ) );
      r.push( t( values[ ++i ] ) );
      r.push( t( values[ ++i ] ) );
    }

    ul = l - 1;
    while( i < ul ) {
      r.push( t( values[ ++i ] ) );
    }

    return r;
  } // Alter..transform()
Merge branch 'master' of github.com:ConnectedSets/ConnectedSets