Prolog returns Out = _G431 when it suppose to return a list of lists
Posted
by Mandah
on Stack Overflow
See other posts from Stack Overflow
or by Mandah
Published on 2010-05-02T06:42:03Z
Indexed on
2010/05/02
6:47 UTC
Read the original article
Hit count: 147
swi-prolog
|return
createSchedule([[math109]], fall, Out).
[[cs485, cs485], [cs355, cs355, cs462, cs462, cs462], [cs345, cs345, cs352, cs352, cs352, cs362, cs362, cs362, cs396, cs396, cs396], [cs330, cs330, cs330], [cs255, cs255, cs255, cs268, cs268], [math114, cs245, cs245], [math112, cs145, cs146], [math109]]
Out = _G431
this is what prolog returns and the list of lists is shown by using write(Out) in prolog.
Any ideas why it is showing this? Thanks
© Stack Overflow or respective owner