Fixed bug: Threading of Times over lists works now.

This commit is contained in:
Jens Axel Søgaard 2013-04-07 14:29:53 +02:00
parent 3b253b7aca
commit a55fe0370a

View File

@ -441,7 +441,9 @@
(construct
'List (map
(λ (u1i u2i)
(construct 'Times (simplify-times-rec (list u1i u2i))))
(define us (simplify-times-rec (list u1i u2i)))
(cond [(empty? (rest us)) (first us)]
[else (construct 'Times us)]))
(operands u1) (operands u2)))]
[(and (list-expression? u1) (list-expression? u2))
; lists of different lengths => do nothing