The Little Schemer - Where to start?

后端 未结 4 625
深忆病人
深忆病人 2021-02-12 19:26

I just cracked open The Little Schemer, and I feel like I\'m missing something.

The first question asks \"Is it true that this is an atom?\", but I do not see any defi

4条回答
  •  悲哀的现实
    2021-02-12 20:06

    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.

提交回复
热议问题