Individuals with the same haplotype will have the same hash (integer) and individuals with different haplotypes will have different hashes (integers).
haplotypes_to_hashes(population, pids)
Population obtained from simulation
Vector of individual pids
Integer vector with haplotype hashes
This can be useful if for example using haplotypes to define groups and the haplotype itself is not of interest.