diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-02-10 05:12:14 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-02-10 05:12:14 -0800 |
commit | 2fccb10283aae350ced4db70fcddcc95e59e503a (patch) | |
tree | a062189edc6051bcec7145857703dca6e9dfc9f6 /genman.txr | |
parent | 13fa06edcfa454ec0f0bb5ae6fb51c968f5dcdfd (diff) | |
download | txr-2fccb10283aae350ced4db70fcddcc95e59e503a.tar.gz txr-2fccb10283aae350ced4db70fcddcc95e59e503a.tar.bz2 txr-2fccb10283aae350ced4db70fcddcc95e59e503a.zip |
Relaxed behavior: don't throw errors for impossible permutations,
but return an empty list.
* eval.c (perm_init_common): Do not throw error; return a nil
state if permutation length exceeds sequence length.
(perm_vec, perm_list, perm_str): Check for null return from
perm_init_common and return empty list.
(k_conses): Do not throw error; return empty list.
(comb_list_gen_fun): Check for nil value out of k_conses.
(comb): For vectors and strings, check length against k and
return nil if necessary. For lists, comb_list_gen_fun handles it.
* txr.1: Section order rearranged, and updated.
Diffstat (limited to 'genman.txr')
0 files changed, 0 insertions, 0 deletions