Git Product home page Git Product logo

Comments (11)

infradig avatar infradig commented on July 28, 2024 1

Thanks, I have a fix for this. Exposed a fundamental flaw when setting attributes... it wasn't adding to the trail.

~/trealla (devel) $ tpl
?- member(A,Z), freeze(B,B), B=!, writeq(A/Z/B).
_0/[_0|_4]/ ! Z = [A|_A], B = !
; _0/[_5,_0|_7]/ ! Z = [_A,A|_B], B = !
; _0/[_5,_8,_0|_10]/ ! Z = [_A,_B,A|_C], B = !
; _0/[_5,_8,_11,_0|_13]/ ! Z = [_A,_B,_C,A|_D], B = !
;
~/trealla (devel) $ scryer-prolog
?- member(A,Z), freeze(B,B), B=!, writeq(A/Z/B).
_1923230/[_1923230|_1923613]/! Z = [A|_A], B = !
; _1923230/[_1923612,_1923230|_1923616]/!Z = [_A,A|_B], B = !
; _1923230/[_1923612,_1923615,_1923230|_1923619]/!Z = [_A,_B,A|_C], B = !
; _1923230/[_1923612,_1923615,_1923618,_1923230|_1923622]/!Z = [_A,_B,_C,A|_D], B = !
; ... .
?-
~/trealla (devel) $

from trealla.

infradig avatar infradig commented on July 28, 2024

from trealla.

flexoron avatar flexoron commented on July 28, 2024

Who is the brain behind freeze.pl? Maybe there can be found a hidden vivacious idea.

from trealla.

infradig avatar infradig commented on July 28, 2024

from trealla.

flexoron avatar flexoron commented on July 28, 2024
?- append([B],[B],B),B=!.
   false.

?- append([B],[B],B), freeze(B,B), B=!.
Segmentation fault (core dumped)

from trealla.

flexoron avatar flexoron commented on July 28, 2024

v2.1.0

?- append([B],[B],B), freeze(B,B), B=!.
Segmentation fault (core dumped)

Can you try this with scryer, too? I don't have it in use right now.

from trealla.

infradig avatar infradig commented on July 28, 2024

~/trealla (devel) $ tpl
?- append([B],[B],B), freeze(B,B), B=!.
error(type_error(callable,[[[_82,_83],[_82,83]],call]),maplist/2).

~/trealla (devel) $ scryer-prolog
?- append([B],[B],B), freeze(B,B), B=!.
error(type_error(callable,[...,...]),call/1).
?-
~/trealla (devel) $

from trealla.

flexoron avatar flexoron commented on July 28, 2024

Great! Thank you.

from trealla.

infradig avatar infradig commented on July 28, 2024

from trealla.

flexoron avatar flexoron commented on July 28, 2024
?- freeze(A,B=b),freeze(B,A=a), freeze(C,D=d), C=go, freeze(D,B=b), frozen((A,B,C,D),X),writeq(A/B).
a/b   A = a, B = b, C = go, D = d, X = true.

from trealla.

infradig avatar infradig commented on July 28, 2024

from trealla.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.