Extract list in PROLOG

You are to write Prolog that mimics the extract_list function.


extract_list([0.1.0],[a,b,c],X).     Will bind X to [a,b,a]

extract_list([2,1,0],[a,b,c],X).     Will bind X to [c,b,a]


You will need to read up on how to traverse a list in PROLOG.  You may also want to test out PROLOG with example from the net on Grandfather rules, etc.


The Computer Science department provides racket Prolog.  You will need to include “/local/sicstus/bin” in your path.  The prolog interpreter is run as “sicstus”


You can create your prolog code in a file and read it in like the following example  (the ending period is VERY VERY  VERY important in PROLOG)



Where the filename is in the single quotes.



1) Your name and problem description

2)  Your prolog code with proper, to the point documentation

3) A screen shot of the run of your code

Among other benefits, we guarantee:

  • Essays written from scratch – 100% original,

  • Timely delivery,

  • Competitive prices and excellent quality,

  • 24/7 customer support,

  • Priority on customer’s privacy,

  • Unlimited free revisions upon request, and

  • Plagiarism free work.

Providing quality essays, written from scratch, delivered on time, at affordable rates!

Order Similar Assignment Now!

  • Our Support Staff are online 24/7
  • Our Writers are available 24/7
  • Most Urgent order is delivered within 4 Hrs
  • 100% Original Assignment Plagiarism report can be sent to you upon request.

GET 15 % DISCOUNT TODAY use the discount code PAPER15 at the order form.

Type of paper Academic level Subject area
Number of pages Paper urgency Cost per page: