wisp
 
(Arne Babenhauserheide)
2015-01-26: substract the required element instead of taking it away

substract the required element instead of taking it away

diff --git a/examples/map-product-sums.w b/examples/map-product-sums.w
--- a/examples/map-product-sums.w
+++ b/examples/map-product-sums.w
@@ -15,7 +15,7 @@ define : list-product-sums list-of-numbe
        map (lambda (x) (apply + x))
            list-ec (: i list-of-numbers)
                map (lambda (x) (* i x))
-                   list-ec (: j list-of-numbers) (if (= i j) 0 j)
+                   cons (- i) list-of-numbers
 
 
 define : main . args