Home My formal education Article list Prolog Prolog concate custom function

Prolog concate custom function

E-mail Print
Share/Save/Bookmark
%conc(L1,L2,List) - adds list L2 to L1 and returns L3 
%- example conc([b,c],[a,b,e],X). X = [b,c,a,b,e]
conc([],L,L).

conc([X|L1],L2,[X|L3]):-
conc(L1,L2,L3).
Hits: 1107
Comments (0)Add Comment

Write comment

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

Sponsored Links

My friends

Bookingpoint
partner websites

Donate

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