show the complete list
- From: "rhitx" <julimarjane@xxxxxxxxx>
- Date: 28 Nov 2006 05:50:47 -0800
I'm trying to run this query in prolog but instead of getting a list
with 16 numbers in it, I only get half and it is indicated with "...",
Can somebody please advice how I can correct this?
rule:
my_test([X1,X2,X3,X4,X5,X6,X7,X8,X9,X10,X11,X12,X13,X14,X15,X16 |[]],
[X13, X14, X15, X16, X9, X10, X11, X12, X5, X6, X7, X8, X1, X2, X3,
X4]) :-
append([X13, X14, X15, X16, X9, X10, X11, X12], [X5, X6, X7, X8, X1,
X2, X3, X4], Y).
query:
my_test([1, 8, 10, 15, 14, 11, 5, 4, 7, 2, 16, 9, 12, 13, 3, 6], X).
X = [12, 13, 3, 6, 7, 2, 16, 9, 14|...]
.
- Follow-Ups:
- Re: show the complete list
- From: Robby Goetschalckx
- Re: show the complete list
- Prev by Date: Re: SWIPL + JPL multiple databases
- Next by Date: Re: show the complete list
- Previous by thread: SWIPL + JPL multiple databases
- Next by thread: Re: show the complete list
- Index(es):