Russ Cox | 68796b0 | 2010-02-01 00:25:59 -0800 | [diff] [blame] | 1 | // true |
2 | |||||
3 | // Copyright 2010 The Go Authors. All rights reserved. | ||||
4 | // Use of this source code is governed by a BSD-style | ||||
5 | // license that can be found in the LICENSE file. | ||||
6 | |||||
7 | package ddd | ||||
8 | |||||
9 | func Sum(args ...int) int { | ||||
10 | s := 0 | ||||
11 | for _, v := range args { | ||||
12 | s += v | ||||
13 | } | ||||
14 | return s | ||||
15 | } | ||||
16 |