I need to get, from a keyboard input (list), a list without duplicates but without using the inbuild setof (or any other inbuild functions) in XSB prolog.
How do i write my own setof function?
Input and output should look like this:
|?-list([a,b,c,d,a,b,c,d,e,f],L).
L=[a,b,c,d,e,f];
Thanks in advance.