P. 1
Prolog Notes

Prolog Notes

|Views: 82|Likes:
Published by Andreas Michael
Prolog Notes
Prolog Notes

More info:

Published by: Andreas Michael on Feb 18, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/13/2015

pdf

text

original

This lecture has two main goals:

1. To define append, a predicate for concatenating two lists, and illustrate what can
be done with it.

2. To discuss two ways of reversing a list: a naive method using append, and a more
efficient method using accumulators.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->