Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
;;; $Id: list-map-mod.scm,v 1.1 2009/01/13 00:40:37 hridesh Exp $
(module list-map-mod mzscheme
(provide list-map)
(define list-map
(lambda (f l)
;; ENSURES: Result is a list of the results of applying f to
;; each element of l.
(cond
((null? l) '())
(else (cons (f (car l)) (list-map f (cdr l)))))))
) ;; end module