Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define (pl lst)
- (match lst
- [(list a) (print (string-append "las elm " a))]
- [(list-rest a r) (print (string-append a " is not last elm."))
- (pl r)]))
- ;; just prints the las element with "las elm". Nothing more than tests.
Add Comment
Please, Sign In to add comment