13 lines
403 B
Plaintext
13 lines
403 B
Plaintext
STL generic algorithms -- that transform sequences
|
|
Original list: 1 2 3 4 5 6
|
|
After squaring: 1 4 9 16 25 36
|
|
After squaring again: 1 16 81 256 625 1296
|
|
After division: 1 8 27 64 125 216
|
|
Partial sums examples
|
|
Partial sums : 1 3 6 10 15
|
|
Partial products: 1 2 6 24 120
|
|
Adjacent Differences examples
|
|
Adjacent Differences : 1 1 1 1 1
|
|
Adjacent sums: 1 3 5 7 9
|
|
End generic transform algorithms example
|