trealla icon indicating copy to clipboard operation
trealla copied to clipboard

Does Trealla Prolog detect cyclic lists?

Open Jean-Luc-Picard-2021 opened this issue 6 months ago • 3 comments

Sometimes:

?- X=[a,b|X], length(X, N).
   throw(error(resource_error(finite_memory),length/2)).

But not here:

?- VN = ['U'=X,'V'=Y | VN], write_term(f(X,g(Y,X),Y), [variable_names(VN)]), nl.
^C

Also Ctrl-C doesn't work in the above example.

Jean-Luc-Picard-2021 avatar Aug 10 '24 18:08 Jean-Luc-Picard-2021