TRUE. ``` $l = [ice cream] , lasagna $x = ___ ``` ``` Starting on goal: $l = [$x | [$x is tasty]] Goal arity 3: $l = [$x | [$x is tasty]] nextSolution Resetting variable $l ("[]"(ice, cream)) Resetting variable $b (_2) Resetting variable $a (_1) Resetting variable ___ ($l) Resetting variable $y (_4) Resetting variable $x (_3) Resetting variable ___ ($l) Resetting variable $y (_6) Resetting variable $x (_5) Resetting variable ___ ($l) Resetting variable $c (_10) Resetting variable $cond (_9) Resetting variable $x (_8) Resetting variable $list (_7) Got clause: ___ = [___ | ___] Clause unifies to: $l = [___ | [___ is tasty]] gdash: ___ = new collector Goal arity 4: ___ = new collector Resetting variable $x (_11) Got clause: ___ = new collector Clause unifies to: ___ = new collector Clause is native. gdash: [forall_impl ([___ , [___ is tasty] , ___])] or true Goal arity 3: [forall_impl ([___ , [___ is tasty] , ___])] or true Resetting variable $b (_13) Resetting variable $a (_12) Resetting variable ___ ("[]"(forall_impl, "()"("[]"(_8, ",", "[]"(_8, is, tasty), ",", ___)))) Resetting variable $y (_15) Resetting variable $x (_14) Resetting variable ___ ("[]"(forall_impl, "()"("[]"(_8, ",", "[]"(_8, is, tasty), ",", ___)))) Resetting variable $y (_17) Resetting variable $x (_16) Resetting variable ___ ("[]"(forall_impl, "()"("[]"(_8, ",", "[]"(_8, is, tasty), ",", ___)))) Resetting variable $c (_21) Resetting variable $cond (_20) Resetting variable $x (_19) Resetting variable $list (_18) Resetting variable ___ ("[]"(forall_impl, "()"("[]"(_8, ",", "[]"(_8, is, tasty), ",", ___)))) Resetting variable $list (_24) Resetting variable $c (_23) Resetting variable $e (_22) Resetting variable ___ ("[]"(forall_impl, "()"("[]"(_8, ",", "[]"(_8, is, tasty), ",", ___)))) Resetting variable $b (_26) Resetting variable $a (_25) Got clause: ___ or ___ Clause unifies to: [forall_impl ([___ , [___ is tasty] , ___])] or true gdash: forall_impl ([___ , [___ is tasty] , ___]) Goal arity 2: forall_impl ([___ , [___ is tasty] , ___]) Resetting variable $collector (_28) Resetting variable $x (_27) Resetting variable $x (_29) Resetting variable $x (_30) Resetting variable $x (_31) Resetting variable $x (_32) Resetting variable $c (_35) Resetting variable $cond (_34) Resetting variable $x (_33) Got clause: forall_impl ([___ , ___ , ___]) Clause unifies to: forall_impl ([___ , [___ is tasty] , ___]) gdash: ___ is tasty Goal arity 3: ___ is tasty Got clause: [ice cream] is tasty Clause unifies to: [ice cream] is tasty gdash: saveTo ([[ice cream] , ___]) Goal arity 2: saveTo ([[ice cream] , ___]) Resetting variable $collector (_37) Resetting variable $x (_36) Got clause: saveTo ([___ , ___]) Clause unifies to: saveTo ([[ice cream] , ___]) Clause is native. gdash: false Goal arity 0: false Resetting variable ___ (___) Resetting variable ___ ("[]"(ice, cream)) Resetting variable $x (_38) Resetting variable $x (_39) Resetting variable $x (_40) Resetting variable $x (_41) Resetting variable $c (_44) Resetting variable $cond (_43) Resetting variable $x (_42) Resetting variable $b (_47) Resetting variable $a (_46) Resetting variable $c (_45) Resetting variable $x (_48) Resetting variable $x (_49) Resetting variable ___ ("[]"(ice, cream)) Resetting variable $b (_51) Resetting variable $a (_50) Resetting variable ___ (_8) Resetting variable $y (_53) Resetting variable $x (_52) Resetting variable ___ (_8) Resetting variable $y (_55) Resetting variable $x (_54) Resetting variable ___ (_8) Resetting variable $c (_59) Resetting variable $cond (_58) Resetting variable $x (_57) Resetting variable $list (_56) Resetting variable ___ (_8) Got clause: lasagna is tasty Clause unifies to: lasagna is tasty gdash: saveTo ([lasagna , ___]) Goal arity 2: saveTo ([lasagna , ___]) Resetting variable $collector (_61) Resetting variable $x (_60) Got clause: saveTo ([___ , ___]) Clause unifies to: saveTo ([lasagna , ___]) Clause is native. gdash: false Goal arity 0: false Resetting variable ___ (___) Resetting variable ___ (lasagna) Resetting variable $x (_62) Resetting variable $x (_63) Resetting variable $x (_64) Resetting variable $x (_65) Resetting variable $c (_68) Resetting variable $cond (_67) Resetting variable $x (_66) Resetting variable $b (_71) Resetting variable $a (_70) Resetting variable $c (_69) Resetting variable $x (_72) Resetting variable $x (_73) Resetting variable ___ (lasagna) Resetting variable $list (_76) Resetting variable $c (_75) Resetting variable $e (_74) Resetting variable ___ (_8) Resetting variable $b (_78) Resetting variable $a (_77) Resetting variable ___ (_8) Resetting variable $b (_80) Resetting variable $a (_79) Resetting variable ___ (_8) Resetting variable ___ (___) Resetting variable ___ ("[]"(_8, is, tasty)) Resetting variable ___ (_8) Resetting variable $b (_83) Resetting variable $a (_82) Resetting variable $c (_81) Resetting variable $x (_84) Resetting variable $x (_85) Resetting variable ___ (true) Resetting variable ___ ("[]"(forall_impl, "()"("[]"(_8, ",", "[]"(_8, is, tasty), ",", ___)))) Resetting variable $b (_87) Resetting variable $a (_86) Got clause: ___ or ___ Clause unifies to: [forall_impl ([___ , [___ is tasty] , ___])] or true gdash: true Goal arity 0: true Got clause: true Clause unifies to: true gdash: $l = retrieve (___) Goal arity 4: $l = retrieve (___) Resetting variable $x (_88) Resetting variable ___ ($l) Resetting variable $collector (_91) Resetting variable $retrieve (_90) Resetting variable $x (_89) Got clause: ___ = ___ (___) Clause unifies to: $l = retrieve (___) Clause is native. gdash: - SUCCESS! solution found in step 77``` [done] 9 ms
Snippet is not live.
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #3000251 |
Snippet name: | Answer for stefanreich (>> solve $l = [$x | [$x is tasty]]) |
Eternal ID of this version: | #3000251/1 |
Text MD5: | f8b36d9e9078a5cd8d4c6a1f0d5c8aac |
Author: | someone |
Category: | |
Type: | New Tinybrain snippet |
Gummipassword: | eleutheria-for-user |
Uploaded from IP: | 69.10.46.185 |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-03-10 01:04:15 |
Source code size: | 6464 bytes / 178 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 537 / 122 |
Referenced in: | [show references] |