문제

I'm using SWI-Prolog interactively. When I run my query, I get a prefix of the output and the rest is taken off (marked using the string ...|...). Is this normal or should I go back and fix my program?

도움이 되었습니까?

해결책

Nothing to worry about. It's just abbreviating it visually... just press 'w' (write) to display the complete internal representation of the list.

다른 팁

The number of items shown is controlled by a prolog flag. You can remove it by issuing

remove_max_depth:-
    current_prolog_flag(toplevel_print_options,Options), 
    select(max_depth(_), Options, NOptions)->
    set_prolog_flag(toplevel_print_options, NOptions); true.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top