What will you do for the empty list


Problem

1) Code the last function for lists using the built-in reverse function for lists. The last function returns the last element of a list. What will you do for the empty list?

2) Code the init function for lists using the built-in reverse function for lists. The init function returns the list of all but the last element of a list. What will you do for the empty list?

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: What will you do for the empty list
Reference No:- TGS03298004

Expected delivery within 24 Hours