shiro #4317(2007/11/22 04:16 GMT) [ Scheme ] Rating4/4=1.00
Schemeならsrfi-42でcomprehensionが使えます。
1 2 3 4 5 6 7
(use srfi-42) (define (partition-num n m) (if (= m 1) `((,n)) (list-ec (: x 0 (+ n 1)) (: xs (partition-num x (- m 1))) (cons (- n x) xs))))
Rating4/4=1.00-0+
1 reply [ reply ]
shiro
#4317()
[
Scheme
]
Rating4/4=1.00
Schemeならsrfi-42でcomprehensionが使えます。
Rating4/4=1.00-0+