Hello! I am in the middle of coding following prob...
# getting-started
b
Hello! I am in the middle of coding following problem in kotlin: I have a Population class which main field is a List of Individuals. The primary constructor was built, so it just takes a list of individuals and passes it inside to the field I mentioned already. But now I am thinking about creating a second constructor, which would take a Int number as an argument, then generate randomly as many Individuals as you specified with the number, then creating a list of those individuals and then passing them to the main field of Population class. Below the code snippet which doesnt compile but shows what I would like to achieve: