Closed
Description
Add convenience method to the Codec
interface: T decode(final Genotype<G> gt)
.
Instead of
final MyType result = problem.codec().decoder().apply(
engine.stream()
.limit(10)
.collect(EvolutionResult.toBestGenotype())
);
you can write
final MyType result = problem.codec().decode(
engine.stream()
.limit(10)
.collect(EvolutionResult.toBestGenotype())
);