And you don't understand that the count for the items is easily returned through an out parameter to get_list. Either way is perfectly valid. This isn't Python with "only one way to write things," this is Pascal.