Rename vars in aplist
This commit is contained in:
parent
997361c1ed
commit
5793281d41
|
@ -31,11 +31,11 @@
|
||||||
;;; map
|
;;; map
|
||||||
|
|
||||||
(define (alist-map fn alist)
|
(define (alist-map fn alist)
|
||||||
(reverse (alist-fold (lambda (key val acc) (cons (fn key val) acc))
|
(reverse (alist-fold (lambda (key val list) (cons (fn key val) list))
|
||||||
'() alist)))
|
'() alist)))
|
||||||
|
|
||||||
(define (plist-map fn plist)
|
(define (plist-map fn plist)
|
||||||
(reverse (plist-fold (lambda (key val acc) (cons (fn key val) acc))
|
(reverse (plist-fold (lambda (key val list) (cons (fn key val) list))
|
||||||
'() plist)))
|
'() plist)))
|
||||||
|
|
||||||
;;; ->
|
;;; ->
|
||||||
|
|
Loading…
Reference in New Issue