Source file test/ddd2.dir/ddd2.go

     1  // Copyright 2010 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // This file is compiled and then imported by ddd3.go.
     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  
    17  

View as plain text