(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: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 161:41:48 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,500 |