Evolution/Evolution/Core/Individual.cs
/// <summary>
/// Gets the genotypes of a list of individuals
/// </summary>
/// <typeparam name="G"></typeparam>
/// <typeparam name="F"></typeparam>
/// <param name="individuals">The individuals.</param>
/// <returns></returns>
Gets the genotypes of a list of individuals
Gets the genotypes of a list of individuals
public static IList<G> GetGenotypes<G, F>(this IList<Individual<G, F>> individuals) where F : IComparable<F>
            where G : IGenotype
        {
            return individuals.Select(i => i.Genotype).ToList();
        }
public static IList < G > GetGenotypes < G , F > ( this IList < Individual < G , F > > individuals ) where F : IComparable < F > where G : IGenotype { return individuals . Select ( i => i . Genotype ) . ToList ( ) ; }
Gets the genotypes of a list of individuals
Gets the genotypes of a list of individuals
None
IList<Individual<G, F>>
this
individuals
None
typeparam
None
typeparam
None