Search found 4 matches

by choibakk
18 Oct 2019 19:51
Forum: Visual Prolog
Topic: Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.
Replies: 2
Views: 36

Re: Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.

Thank you for the great response! I was so proud of my little "slide" routine in 8 lines of code. And then I see this (your version): slide4([X1, X2, X3 | Rest], V1, V2, V3) :- V1 = X1, V2 = X2, V3 = X3 or slide4([X2, X3 | Rest], V1, V2, V3). Brilliant. Thanks again.
by choibakk
18 Oct 2019 2:10
Forum: Visual Prolog
Topic: Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.
Replies: 2
Views: 36

Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.

This is only my 2nd post and again I'll state again I haven't developed with prolog in about 30 years until just recently (my previous experience being "Turbo Prolog" in the late 80's). So I have this quick question. I created a predicate called "slide" that (slides) through a List performing some b...
by choibakk
6 Sep 2019 21:21
Forum: Visual Prolog
Topic: Saving/Consulting a List of objects
Replies: 3
Views: 527

Re: Saving/Consulting a List of objects

Thanks for the replies. The responses make perfect sense.
by choibakk
5 Sep 2019 19:46
Forum: Visual Prolog
Topic: Saving/Consulting a List of objects
Replies: 3
Views: 527

Saving/Consulting a List of objects

Its been 20+ years since I used Prolog so please forgive if this is a bad question or has already been answered. I've been going through the "VisualPrologBeginners.pdf" and ran into a problem trying to save my class facts. On page 131 (Section 8.6) there is the following snippet which is exactly whe...