Home My formal education Article list Prolog Prolog sub list function

Prolog sub list function

E-mail Print
Share/Save/Bookmark
%sublist(Sublist, List)
%returns yes if Sublist is sub list of List
sublist(S,L):-
conc(L1,L2,L),
conc(L3,S,L1).
Hits: 3526
Comments (0)Add Comment

Write comment

busy
Last Updated ( Wednesday, 27 August 2008 13:10 )  

Donate

Do you find content useful? Please donate so I can cover my hosting expenses! Thanks!