Section 38 Want more of a challenge? View in iconic form (experimental)
# OBJECT adding a special form for classes # need a bunch of extra machinery first, will push this # back into previous sections eventually, and simplify [hear] (define list-append (lambda (lst1 lst2) (if (> (list-length (lst1)) 0) (list-append (except-last (lst1)) (prepend (last (lst1)) (lst2))) (lst2))));
# okay, here it comes. don't panic! # I need to split this up into helpers, and simplify. # It basically just writes code for classes like we saw in # a previous section. [hear] (define prev-translate (translate));