RosettaCodeData/Task/Dot-product/LFE/dot-product.lfe
2026-02-01 16:33:20 -08:00

2 lines
76 B
Text

(defun dot-product (a b)
(lists:foldl #'+/2 0 (lists:zipwith #'*/2 a b)))