Re: Impressed but confused, gluing a list together...

Sean Charles <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
> 
> I added a cut to avoid the solution with trailing glue.
> join([X], _, [X]) :- !.

I am confused at the cut.. I have not yet experienced trailing glue, that was the point of the second rule!?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.