Sum of squares: Difference between revisions

Undo revision 182532 by Avall (talk) Made a mistake
(→‎{{header|Python}}: better functional version)
(Undo revision 182532 by Avall (talk) Made a mistake)
Line 1,123:
 
'''Functional version:'''
<lang python>reducesum(map(lambda x,y: x+y*yx, [1, 2, 3, 4, 5]))</lang>
 
=={{header|Prolog}}==
Anonymous user