mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Accept multiple list args
This commit is contained in:
parent
7aa7a8fefb
commit
c427549c0a
1 changed files with 7 additions and 6 deletions
|
@ -738,12 +738,13 @@
|
|||
(define (string-map func str1 . strs)
|
||||
(list->string
|
||||
(apply map `(,func ,(string->list str1) ,@(map string->list strs)))))
|
||||
(define (string-for-each func str)
|
||||
(for-each func (string->list str)))
|
||||
(define (vector-map func vec)
|
||||
(list->vector (map func (vector->list vec))))
|
||||
(define (vector-for-each func vec)
|
||||
(for-each func (vector->list vec)))
|
||||
(define (string-for-each func str1 . strs)
|
||||
(apply for-each `(,func ,(string->list str1) ,@(map string->list strs))))
|
||||
(define (vector-map func vec1 . vecs)
|
||||
(list->vector
|
||||
(apply map `(,func ,(vector->list vec1) ,@(map vector->list vecs)))))
|
||||
(define (vector-for-each func vec1 . vecs)
|
||||
(apply for-each `(,func ,(vector->list vec1) ,@(map vector->list vecs))))
|
||||
(define (vector-append . vecs)
|
||||
(list->vector
|
||||
(apply append (map vector->list vecs))))
|
||||
|
|
Loading…
Add table
Reference in a new issue