(list-ref list k) ------- ( 0-index awkwardness) , R7RSsee Xlispstat list-select and Lisp-Stat select (and iota).
(i guess this problem is the same with Common Lisp's Nth and Elt.)
in the following code ,
--- Print the 10th element (in the list),
--- Print the 20th element,
Hen Hanna <henh...@gmail.com> wrote:
(list-ref list k) ------- ( 0-index awkwardness) , R7RS
(i guess this problem is the same with Common Lisp's Nth and Elt.)
in the following code ,
--- Print the 10th element (in the list),
--- Print the 20th element,
see Xlispstat list-select and Lisp-Stat select (and iota).
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 03:14:00 |
Calls: | 6,706 |
Calls today: | 6 |
Files: | 12,235 |
Messages: | 5,350,192 |