Recursion

Description

Example of recursion in Prolog

Source: Learn prolog now! (course available on-line)

Download

Program source code: recursion.pl

Listing

numeral(0).
 
numeral(succ(X)):-numeral(X).

Comments

pl/prolog/pllib/recursion.txt · ostatnio zmienione: 2019/06/27 15:50 (edycja zewnętrzna)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0