Logo

Programming-Idioms

History of Idiom 54 > diff from v47 to v48

Edit summary for version 48 by thinkelman:
New Scheme implementation by user [thinkelman]

Version 47

2021-04-15, 13:28:14

Version 48

2021-04-15, 13:32:29

Idiom #54 Compute sum of integers

Calculate the sum s of integer list x.

Idiom #54 Compute sum of integers

Calculate the sum s of integer list x.

Variables
s,x
Variables
s,x
Code
(define s (apply fx+ x))
Comments bubble
`fx+` is integer (fixnum) operation