* Building and Pulling Lists

to determine the Scheme expressions

Page 1 of 1

1 Replies - 583 Views - Last Post: 05 January 2011 - 06:37 AM

#1 johnpril  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 05-January 11

* Building and Pulling Lists

Posted 05 January 2011 - 01:51 AM

Scheme provides three operators (cons, car, and cdr) for dynamically building lists (cons) and for pulling lists apart (car and cdr). In the interactive window, try to rebuild the non-empty lists (including the nested list) that you built in Empty, Simple, Nested activity using the cons operator. Save your lists in variables list1 and list2 respectively. Then try to pull apart your lists using car and cdr. Write down your Scheme expressions.

Is This A Good Question/Topic? 0
  • +

Replies To: * Building and Pulling Lists

#2 GWatt  Icon User is offline

  • member icon

Reputation: 278
  • View blog
  • Posts: 3,079
  • Joined: 01-December 05

Re: * Building and Pulling Lists

Posted 05 January 2011 - 06:37 AM

[rules][/rules]
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1