What does “my other car is a cdr” mean?

前端 未结 3 1398
滥情空心
滥情空心 2021-02-01 00:22

Can anyone well versed in lisp explain this joke to me? I\'ve done some reading on functional programming languages and know that CAR/CDR mean Contents of Address/Decrement Reg

3条回答
  •  甜味超标
    2021-02-01 00:56

    //Coming from Scheme
    Scheme has very few data structures, one of them is a tuple: '(first . second). In this case, car is the first element, and cdr is the second. This construct can be extended to create lists, trees, and other structures.
    The joke isn't very funny.

提交回复
热议问题