Following is the Source Code to Create Linked List Functions and Procedures (Delete All, Delete First, Delete Last)
(1)
list del_all (list L, data alpha)
{
if (null(L))
return nullist();
else if (car(L) = = alpha)
return del_all(cdr(L), alpha);
else
return cons(car(L), del_all(cdr(L), alpha));
}