implemented Miscellaneous completely

This commit is contained in:
stibear 2014-02-10 23:20:20 +09:00
parent 2c491001a5
commit 4e2becb642
1 changed files with 6 additions and 0 deletions

View File

@ -245,6 +245,12 @@
(map third list)
(map fourth list)
(map fifth list)))
(define (count pred . clists)
(let rec ((tflst (apply map pred clists)) (n 0))
(if (null? tflst)
n
(rec (cdr tflst) (if (car tflst) (+ n 1) n)))))
(export length length+
append append! concatenate concatenate!