SICP exercises (2.26) Summary of problems: list operator append cons list

Source: Internet
Author: User

SICP Exercise 2.26 also do not need to explain too much, the main purpose of the topic is to let the reader understand the append cons list three operation differences.


Just run the start-test-2-26 procedure in the code below and you need to be aware of the append process, the cons process, and the use of the list process.


Better turn the Mit-schme reference manual, right, has not mentioned Mit-scheme manual, suggest everyone to download a spare, when needed to check

The links are as follows:

http://www.gnu.org/software/mit-scheme/

PDF version is available for download.


Here is the test code, it is recommended to write it again, do not copy me.


(Define X (List 1 2 3)) (Define Y (List 4 5 6)) (Define (START-TEST-2-26)  (Display (append x y))  (newline)  (Display (cons x y))  (newline)  (Display (list x y)))


SICP exercises (2.26) Summary of problems: list operator append cons list

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.