root/tags/lgt2310/library/natural.lgt

Revision 3687, 348 bytes (checked in by pmoura, 21 months ago)

Code reformating.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1
2:- object(natural,
3    extends(integer)).
4
5    :- info([
6        version is 1.0,
7        author is 'Paulo Moura',
8        date is 2000/7/24,
9        comment is 'Natural numbers data type predicates.']).
10
11    between(Lower, Upper, Integer) :-
12        integer(Lower),
13        Lower > 0,
14        ^^between(Lower, Upper, Integer).
15
16    valid(Natural) :-
17        integer(Natural),
18        Natural > 0.
19
20:- end_object.
Note: See TracBrowser for help on using the browser.