Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:intermediate:json_prolog [2019/04/16 14:37]
hawkin fine tuning formatting
tutorials:intermediate:json_prolog [2019/04/16 14:39] (current)
hawkin formatting
Line 202: Line 202:
     CL-USER> (cut:​force-ll (json-prolog:​prolog-simple "​member(X,​ [1,2]), Y = 3."))     CL-USER> (cut:​force-ll (json-prolog:​prolog-simple "​member(X,​ [1,2]), Y = 3."))
 </​code>​ </​code>​
-returns a list of bindings for X and Y (Note: ''​force-ll''​ expands the lazy list we get returned from Prolog. ''​cut''​ is the nickname of the ''​cram-utilities''​ package that one might need to import if this was not done prior):+returns a list of bindings for X and Y (//Note:// ''​force-ll''​ expands the lazy list we get returned from Prolog. ''​cut''​ is the nickname of the ''​cram-utilities''​ package that one might need to import if this was not done prior):
 <code lisp> <code lisp>
     (((?X . 1) (?Y . 3)) ((?X . 2) (?Y . 3)))     (((?X . 1) (?Y . 3)) ((?X . 2) (?Y . 3)))