functions: Implement tbf-tabulate using tbf-tabulate*.
This commit is contained in:
parent
e11f20431f
commit
1adaf63ec1
1 changed files with 1 additions and 6 deletions
|
@ -342,12 +342,7 @@
|
|||
'((0 0 0 0) (0 1 1 0) (1 0 1 0) (1 1 1 1)))))
|
||||
|
||||
;;; Tabulates a TBF.
|
||||
(define (tbf-tabulate tbf)
|
||||
(define ins (apply
|
||||
cartesian-product
|
||||
(make-list (vector-length (tbf-w tbf)) '(0 1))))
|
||||
(for/list ([in ins])
|
||||
(append in (list (apply-tbf tbf (list->vector in))))))
|
||||
(define tbf-tabulate (compose tbf-tabulate* list))
|
||||
|
||||
(module+ test
|
||||
(test-case "tbf-tabulate"
|
||||
|
|
Loading…
Reference in a new issue