Commit Graph

24 Commits

Author SHA1 Message Date
Markus Triska
2c96420bc4 ADDED: list_to_set/2, using the first occurrence of each element
Example:

    ?- list_to_set([B,a,b,a,B,A,b,A], Ls).
       Ls = [B,a,b,A]
    ;  false.
2020-04-15 18:04:01 +02:00
Mark Thom
2613ef0633 adopt compatibility predicates from clpb and clpz into lists and pairs libraries 2020-02-21 12:48:15 -07:00
Mark Thom
52488b875a add predicates to lists.pl 2019-12-01 19:30:40 -07:00
Mark Thom
77e83a390c add sumlist/2 to lists.pl 2019-11-30 14:26:15 -07:00
Mark Thom
27b659c401 add sumlist/2 to lists.pl 2019-11-30 14:22:59 -07:00
Mark Thom
1b1879a6fa fix attributed variables bug causing weighted_maximum/3 example to omit a variable binding 2019-10-20 14:50:46 -06:00
Mark Thom
1d41489381 correct off by 1 error in verify_attrs_interrupt, revert to previous lists.pl 2019-10-12 19:14:33 -06:00
Mark Thom
5893ff4231 correct latest out of bounds panic, use first argument indexing in maplists/{2..9} 2019-10-12 01:20:42 -06:00
Mark Thom
9b93c33491 re: issue #118 2019-04-25 20:11:34 -06:00
Mark Thom
18a9a6434f delay attributed variables goal, naively correct dif/2 2019-04-24 20:37:31 -06:00
Mark Thom
01e57f83ee address issues #111 and #108 2019-04-23 20:27:47 -06:00
Mark Thom
f35008cbd6 condense reverse even further 2019-03-03 17:36:20 -07:00
Mark Thom
3fc0a230fa tighten reverse/2 2019-03-03 10:37:34 -07:00
Mark Thom
74521a93d3 improve reverse/2 2019-03-03 02:50:49 -07:00
Mark Thom
77652d4458 correct inlining calling in last call context 2019-03-02 22:57:07 -07:00
Mark Thom
073a8888f3 include builtins implicitly in every module. 2018-07-04 23:25:55 -06:00
Mark Thom
06d896277c major refactor 2018-05-15 22:47:36 -06:00
Mark Thom
b0bdf50a78 parse negative numbers properly, handle length errors and failures properly. 2018-05-12 18:23:57 -06:00
Mark Thom
167d8a7590 correct-ish definition of reverse. 2018-04-18 15:31:36 -06:00
Mark Thom
eb694cbba7 remove flatten 2018-03-26 19:05:23 -06:00
Mark Thom
2691382771 add flatten. 2018-03-26 18:49:43 -06:00
Mark Thom
2cc5367c52 add is_list 2018-03-09 19:27:22 -07:00
Mark Thom
8a63623516 add provisional module support. 2018-03-02 22:28:12 -07:00
Mark Thom
5de03444eb fix bugs in call_with_inference_limit 2018-02-21 19:46:15 -07:00