Started adding example functions

This commit is contained in:
btracey
2013-07-18 17:25:45 -07:00
parent 948dac9918
commit a26feb1a53
2 changed files with 13 additions and 4 deletions

9
examples.go Normal file
View File

@@ -0,0 +1,9 @@
package sliceops
// Set of examples for all the functions
func ExampleAdd() {
s1 := []float64{1, 2, 3, 4}
s2 := []float64{5, 6, 7, 8}
Add(s1, s2)
}