diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-09-02 03:31:01 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-09-02 03:31:01 -0700 |
commit | db7b65f8c76cc6734f984d181945d4965742c4da (patch) | |
tree | 2669bcca8fe8ae5ee10c0c32d0484e89f19ba914 /lib.h | |
parent | 689203c7c023c39c83f6419aa76d9562b1d148f5 (diff) | |
download | txr-db7b65f8c76cc6734f984d181945d4965742c4da.tar.gz txr-db7b65f8c76cc6734f984d181945d4965742c4da.tar.bz2 txr-db7b65f8c76cc6734f984d181945d4965742c4da.zip |
* eval.c (eval_init): Follow function renames.
* hash.c (make_hash): Likewise.
* lib.c (assq): Renamed to assql for consistency.
(aconsq_new): Renamed to aconsql_new.
(aconsq_new_l): Renamed to aconsql_new_l.
(alist_remove_test): Use equal rather than eq. Association lists
use equal equality by default.
(alist_nremove): Use memqual rather than memq.
(alist_nremove1): Use equal rather than eq.
(merge): Bugfix: unnecessary consing caused by using append
instead of nconc on list pieces that are already destructively
chopped up. This has implications for the efficiency of sort
over lists!
(multi_sort_less): Implement key functions.
(multi_sort): Interface change: arguments rearranged, and new
argument to specify key functions.
* lib.h (assoc, assq, assql, aconsq_new, aconsq_new_l): Declarations
renamed.
(multi_sort): Declaration updated.
* txr.1: Documented alist library, list sorting and completed
documenting lazy library.
* txr.vim: multi-sort highlighted.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -618,12 +618,12 @@ mem_t *cobj_handle(val cobj, val cls_sym); val cptr(mem_t *ptr); mem_t *cptr_get(val cptr); val assoc(val key, val list); -val assq(val key, val list); +val assql(val key, val list); val acons(val car, val cdr, val list); val acons_new(val key, val value, val list); val *acons_new_l(val key, val *new_p, val *list); -val aconsq_new(val key, val value, val list); -val *aconsq_new_l(val key, val *new_p, val *list); +val aconsql_new(val key, val value, val list); +val *aconsql_new_l(val key, val *new_p, val *list); val alist_remove(val list, val keys); val alist_remove1(val list, val key); val alist_nremove(val list, val keys); @@ -635,7 +635,7 @@ val mapcon(val fun, val list); val mappend(val fun, val list); val merge(val list1, val list2, val lessfun, val keyfun); val sort(val seq, val lessfun, val keyfun); -val multi_sort(val funcs, val lists); +val multi_sort(val lists, val funcs, val key_funcs); val find(val list, val key, val testfun, val keyfun); val find_if(val pred, val list, val key); val set_diff(val list1, val list2, val testfun, val keyfun); |