home *** CD-ROM | disk | FTP | other *** search
Prolog Source | 1988-06-21 | 323 b | 17 lines |
- /*
- Turbo Prolog 2.0 Chapter 13, Example Program 1
-
- Copyright (c) 1986, 88 by Borland International, Inc
-
- */
-
- domains
- charlist = char*
-
- predicates
- string_chlist(string, charlist)
-
- clauses
- string_chlist("", []).
- string_chlist(S, [H|T]) :- frontchar(S, H, S1), string_chlist(S1, T).
-