Fixed bug: Threading of Times over lists works now.
This commit is contained in:
parent
3b253b7aca
commit
a55fe0370a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user