mes: Add hash-fold.
* mes/module/mes/scm.mes (hash-fold): New function.
This commit is contained in:
parent
824bc1b15a
commit
13785e43f3
|
@ -202,6 +202,9 @@
|
|||
(define (hash-ref table key . rest)
|
||||
(core:hash-ref table key (and (pair? rest) (car rest))))
|
||||
|
||||
(define (hash-fold proc init table)
|
||||
(fold proc init (hash-map->list cons table)))
|
||||
|
||||
|
||||
;; Variable
|
||||
(define (make-undefined-variable)
|
||||
|
|
Loading…
Reference in New Issue