Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define (appendv1 A B)
- (farok-reku-append B A B))
- (define (farok-reku-append akku A B)
- (cond
- [(empty? A) akku]
- [else
- (define fejA (first A))
- (define farokA (rest A))
- (define akku2(cons fejA B))
- (appendv1 farokA akku2)
- ]))
- (writeln (appendv1(list 5 2 1) (list 3 6 9)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement