Guest User

inefficient map

a guest
Sep 23rd, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.11 KB | None | 0 0
  1. (define (map proc lst)
  2.   (match lst
  3.     (() '())
  4.     ((car rest ...)
  5.      (cons (proc car) (map proc rest)))))
Advertisement
Add Comment
Please, Sign In to add comment