On 2020-05-06 7:34 pm, Freeman Gilmore wrote:
What is a cheap-list and where is it explained?
Thank you, ƒg
There is no such thing as a "cheap list" per se. cheap-list? is simply
a faster predicate compared to the standard list?:
;;;; from c++.scm
(define-public (cheap-list? x)
(or (pair? x) (null? x)))
;;;;
All lists will pass cheap-list?, but not all things that pass
cheap-list? are lists. Additional care must be taken within the
function body when using cheap-list? as a type predicate.
-- Aaron Hill