Find Jobs
Hire Freelancers

Prolog Simple Error Checking ListLength

$10-30 USD

Cancelled
Posted over 8 years ago

$10-30 USD

Paid on delivery
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([],0). 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. Requirements: Need code ASAP! No more than an hour :)
Project ID: 8895425

About the project

1 proposal
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
1 freelancer is bidding on average $45 USD for this job
User Avatar
A proposal has not yet been provided
$45 USD in 1 day
5.0 (4 reviews)
2.8
2.8

About the client

Flag of UNITED STATES
Sacramento, United States
5.0
57
Payment method verified
Member since Nov 2, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.