- Add an item to a list
- Delete an item from a list
- Display all items of a list
Lists in SchemeHow to add, delete and display items from lists in scheme?
Page 1 of 1
2 Replies - 1173 Views - Last Post: 21 December 2009 - 11:40 AM
#1
Lists in Scheme
Posted 21 December 2009 - 08:11 AM
How to
Replies To: Lists in Scheme
#2
Re: Lists in Scheme
Posted 21 December 2009 - 09:30 AM
#3
Re: Lists in Scheme
Posted 21 December 2009 - 11:40 AM
You use car and cdr to manipulate list.
ex you have a list A = [1 2 3 4]
car(A) will return 1 and cdr(A) will return [2 3 4].
[Car|Cdr]
ex you have a list A = [1 2 3 4]
car(A) will return 1 and cdr(A) will return [2 3 4].
[Car|Cdr]
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|