This commit is contained in:
2018-10-13 11:19:15 +02:00
parent db996837e7
commit 4f12df5849
3 changed files with 16 additions and 8 deletions

View File

@@ -88,7 +88,8 @@ where
.map(|individual| Wrapper {
individual,
fitness: None,
}).for_each(|wrapper| {
})
.for_each(|wrapper| {
population.push(wrapper);
});
@@ -139,7 +140,8 @@ where
.map(|individual| Wrapper {
individual,
fitness: None,
}).collect_into_vec(&mut population);
})
.collect_into_vec(&mut population);
ParSimulation { population }
}