Make a function evenlengthlist that determines if a list


Prolog - SWI

1) Make a function evenlength(List) that determines if a list has an even number of elements. The function should return true or false.

2) Make a function reverseeven(List, Reversed) where your previous evenlength function is used to check if List has an even number of elements. If it does, reverse the list. If it does not, return the empty list.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Make a function evenlengthlist that determines if a list
Reference No:- TGS02903681

Expected delivery within 24 Hours