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!?