Lists in Scheme

How to add, delete and display items from lists in scheme?

Page 1 of 1

2 Replies - 1575 Views - Last Post: 21 December 2009 - 11:40 AM

#1 cthulhu1987  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 1
  • Joined: 21-December 09

Lists in Scheme

Post icon  Posted 21 December 2009 - 08:11 AM

How to
  • Add an item to a list
  • Delete an item from a list
  • Display all items of a list

Is This A Good Question/Topic? 1
  • +

Replies To: Lists in Scheme

#2 Raynes  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 611
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: Lists in Scheme

Posted 21 December 2009 - 09:30 AM

How to: Google.

1. cons
2. http://stackoverflow...-list-in-scheme
3. print?
Was This Post Helpful? 0
  • +
  • -

#3 sacstate2600  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 8
  • Joined: 20-December 09

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]
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1