summaryrefslogtreecommitdiffstats
path: root/tests/012/callable.tl
Commit message (Collapse)AuthorAgeFilesLines
* New: callable integers and ranges.Kaz Kylheku2023-06-281-0/+23
* lib.c (do_generic_funcall): Allow integers and ranges to be function callable. They take one argument and index into it or extract a slice. In the case of ranges, this is a breaking change. Ranges can already be used in the function position in some limited ways that are not worth preserving. * tests/012/callable.tl: New file. * tests/012/iter.tl: Here we fix two instances of breakage. Using txr -C 288 will restore the behaviors previously tested here. * txr.1: Documented.