Home My formal education Article list Prolog Prolog insert function

Prolog insert function

E-mail Print
Share/Save/Bookmark
%insert(X,L,BL)
%inserts X to a custom position in list and returns BL
insert(X,List,BL):-
del(X,BL,List).
Hits: 2923
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!