This version of Learn Prolog Now! embeds SWI SH , SWI-Prolog for SHaring. The current version rewrites the Learn Prolog Now! HTML on the fly, recognising source code and example queries. It is not yet good at recognising the relations between source code fragments and queries. Also Learn Prolog Now! needs some updating to be more compatible with SWI-Prolog. All sources are on GitHub:
LearnPrologNow LPN SWISH Proxy SWISH

Chapter 4

This chapter has three main goals:

  1. To introduce lists, an important recursive data structure often used in Prolog programming.
  2. To define the member/2 predicate, a fundamental Prolog tool for manipulating lists.
  3. To introduce the idea of recursing down lists.

eXTReMe Tracker
© 2006-2012 Patrick Blackburn, Johan Bos, Kristina Striegnitz