move {vector,string}-{map,for-each}
This commit is contained in:
parent
d8cbcde157
commit
9b226afd1f
|
@ -1 +1 @@
|
||||||
Subproject commit c4258153138a33441054e75072ea30e4012f9265
|
Subproject commit 0c67a4b77fcc317a78af4bd40afca591f25a09cb
|
|
@ -116,14 +116,14 @@
|
||||||
list-ref
|
list-ref
|
||||||
list-set!
|
list-set!
|
||||||
list-copy
|
list-copy
|
||||||
|
map
|
||||||
|
for-each
|
||||||
memq
|
memq
|
||||||
memv
|
memv
|
||||||
member
|
member
|
||||||
assq
|
assq
|
||||||
assv
|
assv
|
||||||
assoc
|
assoc)
|
||||||
map
|
|
||||||
for-each)
|
|
||||||
|
|
||||||
(export bytevector?
|
(export bytevector?
|
||||||
bytevector
|
bytevector
|
||||||
|
@ -147,6 +147,8 @@
|
||||||
vector-copy
|
vector-copy
|
||||||
vector-append
|
vector-append
|
||||||
vector-fill!
|
vector-fill!
|
||||||
|
vector-map
|
||||||
|
vector-for-each
|
||||||
list->vector
|
list->vector
|
||||||
vector->list
|
vector->list
|
||||||
string->vector
|
string->vector
|
||||||
|
@ -162,6 +164,8 @@
|
||||||
string-copy!
|
string-copy!
|
||||||
string-append
|
string-append
|
||||||
string-fill!
|
string-fill!
|
||||||
|
string-map
|
||||||
|
string-for-each
|
||||||
string->list
|
string->list
|
||||||
list->string
|
list->string
|
||||||
string=?
|
string=?
|
||||||
|
|
|
@ -435,18 +435,6 @@
|
||||||
|
|
||||||
;; 6.10. Control features
|
;; 6.10. Control features
|
||||||
|
|
||||||
(define (string-map f . strings)
|
|
||||||
(list->string (apply map f (map string->list strings))))
|
|
||||||
|
|
||||||
(define (string-for-each f . strings)
|
|
||||||
(apply for-each f (map string->list strings)))
|
|
||||||
|
|
||||||
(define (vector-map f . vectors)
|
|
||||||
(list->vector (apply map f (map vector->list vectors))))
|
|
||||||
|
|
||||||
(define (vector-for-each f . vectors)
|
|
||||||
(apply for-each f (map vector->list vectors)))
|
|
||||||
|
|
||||||
(export procedure?
|
(export procedure?
|
||||||
apply
|
apply
|
||||||
map
|
map
|
||||||
|
|
Loading…
Reference in New Issue