lDefine the function halve_all, which divides every element in a list by 2.
lhalve_all([ ]) => [ ];
lhalve_all([F | R]) => [F/2 | halve_all(R)];
lThis can be read:
lÒhalving
all of the empty list is the empty list.Ó
lÒhalving
all of a non-empty list is half of the first element followed by halving all of the rest.Ó