buzz
buzz copied to clipboard
Object generics
object Population<T> {
[T] population,
fun count() > num {
return this.population.len();
}
}
Population<str> myPopulation = Population<str>{
population = [str, "joe", "john", "burt"],
};
myPopulation.count() == 3;