?- avg_list([1 rdiv 3, 1 rdiv 6], X). X = 1 rdiv 4.
Avg is the integer 0 in case Numbers is the empty list. This is in line with how sum_list/2 works.