Sha256: ac1f9551aac5aacc987b867906a7aefeb6fbc884ba60f99dee5d887a55bc4b58

Contents?: true

Size: 231 Bytes

Versions: 116

Compression:

Stored size: 231 Bytes

Contents

package accumulate

// Accumulate transform given strings by using given function
func Accumulate(s []string, f func(st string) string) (result []string) {
	for _, v := range s {
		result = append(result, f(v))
	}
	return result
}

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.179 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.178 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.177 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.176 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.175 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.174 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.173 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.172 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.171 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.170 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.169 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.167 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.166 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.165 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.164 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.163 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.162 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.161 tracks/go/exercises/accumulate/example.go
trackler-2.2.1.160 tracks/go/exercises/accumulate/example.go