core-logic

niveauverleih 2020-03-25T22:02:50.003800Z

Could someone explain the term "list with an improper tail" to me, please? I am trying to understand dotted pairs, lcons and llist, while reading the reasoned schemer.

2020-03-25T22:42:02.004300Z

in scheme a cons cell is basically a 2 element array

2020-03-25T22:42:18.004700Z

and you can put anything in either slot

2020-03-25T22:43:02.005600Z

a list is a cons cell or series of cons cells where the second element (the cdr) is a cons cell or nil

2020-03-25T22:43:50.006400Z

an improper list is a series of cons cells where the lest cons cell doesn't have nil as the cdr