public IGPGene Clone()
{
// create new gene ...
ExtendedGeneFunction clone = new ExtendedGeneFunction(variablesCount, false);
// ... with the same type and value
clone.type = type;
clone.val = val;
clone.argumentsCount = argumentsCount;
return clone;
}