summaryrefslogtreecommitdiffstats
path: root/tests/012/fini.expected
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-10-05 14:56:33 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-10-05 14:56:33 -0700
commit1a8ca97932bc4c923ba7d5f2ae27b2bf754884b8 (patch)
tree6a9c0cb0f36a4a422140359123abed5be407fbdd /tests/012/fini.expected
parent3b87081903c42cdfe0eaf58629b90a83351b7a87 (diff)
downloadtxr-1a8ca97932bc4c923ba7d5f2ae27b2bf754884b8.tar.gz
txr-1a8ca97932bc4c923ba7d5f2ae27b2bf754884b8.tar.bz2
txr-1a8ca97932bc4c923ba7d5f2ae27b2bf754884b8.zip
New: length-list-<, length-<
These are functions for testing whether a list or sequence is shorter than a given integer. This is cheaper than calculating the length of lists, which is in some cases impossible if they are infinite. A length-str-< function already exists, useful with lazy strings. length-< uses length-list-< or length-str-< as appropriate * lib.[ch] (length_list_lt, length_lt): New functions. * eval.c (eval_init): length-list-< and length-< intrinsics registered. * tests/012/seq.tl: New tests. * txr.1: Documented.
Diffstat (limited to 'tests/012/fini.expected')
0 files changed, 0 insertions, 0 deletions