1 ;; The first three lines of this file were inserted by DrScheme. They record metadata
2 ;; about the language level of this file in a form that our tools can easily process.
3 #reader(lib "htdp-intermediate-reader.ss" "lang")((modname 19.1.0) (read-case-sensitive #t) (teachpacks ((lib "draw.ss" "teachpack" "htdp"))) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ((lib "draw.ss" "teachpack" "htdp")))))
4 (define (filter1 rel-op alon t)
8 [(rel-op (first alon) t)
10 (filter1 rel-op (rest alon) t))]
12 (filter1 rel-op (rest alon) t)])]))
14 (filter1 < (cons 6 (cons 4 empty)) 5)
20 (cons (first (cons 6 (cons 4 empty)))
21 (filter1 rel-op (rest (cons 6 (cons 4 empty))) 5))]
23 (filter1 < (rest (cons 6 (cons 4 empty))) 5)])])
25 (filter1 < (rest (cons 6 (cons 4 empty))) 5)
31 (cons (first (cons 4 empty))
32 (filter1 rel-op (rest (cons 4 empty)) 5))]
34 (filter1 < (rest (cons 4 empty)) 5)])])
36 (cons (first (cons 4 empty))
37 (filter1 rel-op (rest (cons 4 empty)) 5))
39 (cons 4 (filter1 rel-op (rest (cons 4 empty)) 5))
41 (cons 4 (filter1 < empty) 5)
44 (filter1 > (cons 8 (cons 6 (cons 4 empty))) 5)
49 [(rel-op (first alon) t)
51 (filter1 rel-op (rest alon) t))]
53 (filter1 rel-op (rest alon) t)])])
55 (cons 8 (filter1 > (cons 6 (cons 4 empty)) 5))
56 (cons 8 (cons 6 (filter1 > (cons 4 empty) 5)))
57 (cons 8 (cons 6 (filter1 > empty 5)))
58 (cons 8 (cons 6 empty))