Can I read Understanding Cons Cells in Programming on EtoBox?
Understanding Cons Cells in Programming by Cosmin Ghirisan is a document available to read on EtoBox.
What is Understanding Cons Cells in Programming about?
cons creates pairs that can be nested to form lists. While lists are conventionally formed with nested pairs ending in null, cons can create "improper" pairs that do not follow this convention. Functions like length that expect proper lists will result in runtime errors if passed an improper list. Proper lists should be used for collections of unknown size, but cons can be used to build pairs when appropriate. Built-in functions like list? and pair? can distinguish between proper lists, improper lists, and
- Author
- Cosmin Ghirisan
- Language
- EN