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)
Integer vector with haplotype hashes
Population obtained from simulation
Vector of individual pids
This can be useful if for example using haplotypes to define groups and the haplotype itself is not of interest.