Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Callable integers become assignable places. | Kaz Kylheku | 2023-06-30 | 1 | -0/+8 |
| | | | | | | | | | * lib.c (dwim_set): Handle seq argument being an integer or range. * tests/012/callable.tl: A few tests. * txr.1: Documented. | ||||
* | New: callable integers and ranges. | Kaz Kylheku | 2023-06-28 | 1 | -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. |