Guest User

Untitled

a guest
Jul 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. (define (pl lst)
  2. (match lst
  3. [(list a) (print (string-append "las elm " a))]
  4. [(list-rest a r) (print (string-append a " is not last elm."))
  5. (pl r)]))
  6. ;; just prints the las element with "las elm". Nothing more than tests.
Add Comment
Please, Sign In to add comment