Prolog Simple Error Checking ListLength

Hello Freelancers,

My code simply finds the length of a list. First argument being a list, and the length of that list as its second argument.

Code below:


listlength([_|T],N) :- listlength(T,X), N is X+1.

I would like you to make it print out informative errors, for example ( “listlength/2: The first argument must be a list.”). You may use built-in predicates for error checking only.


Need code ASAP! No more than an hour :)

Skills: Prolog

See more: runtime error 80004005 operation must use updateable, php code simple message board use text file, simple websites designed use affiliated marketing, simple prolog project, simple prolog, projet simple prolog, install errors pear error install failed, fck editor working use ajax jsp example, simple easy use web site, javascript error checking cookie

About the Employer:
( 57 reviews ) Sacramento, United States

Project ID: #8895425

1 freelancer is bidding on average $45 for this job


A proposal has not yet been provided

$45 USD in 1 day
(4 Reviews)