The Little Schemer - Where to start?

时光总嘲笑我的痴心妄想 提交于 2019-12-03 10:05:34

Yes, the format of the little schemer will lead you to discover the concepts through the answers provided. Don't freak out, just keep reading.

The Little Schemer teaches you Scheme through a sort of assimilation. Instead of giving you the definition of an atom it shows examples with a question and through it's answer it tells you why something is true or false and in the same time increase your knowledge about whats asked.

The way you learn Scheme though that book is the same way you learn concepts, material or not, as a toddler. It's proven to be a good way to learn natural languages so why not computer languages?

In the beginning of the book it says you need to be able to read English, recognize numbers and be able to count to make use of the book. In comparison, to read and understand a Scheme report (Scheme language definition) you need some knowledge of programming languages, mathematical concepts and how to read formal grammar.

I think you will find the concept of "atom", "list" and "S-expression" after you read the fist chapter.

The book isn't the traditional book that teaches you what one concept is and then provides examples. It uses Q&A style to explain the concept of Scheme and functional programming with examples.

In another word, the questions are not for you to answer, it's a way to guide you to thinking.

An atom is a basic unit in Scheme such as a number or a character.

car returns the head of the list whereas cdr returns the tail.

>(car '(a b c)) ; car returns the first element in the list...
'a
> (cdr '(a b c))    ; cdr returns the rest.
'(b c)

I would start with a basic tutorial.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!