Sha256: 5787e9d95c0f9ee01464139e2ff8fd74ed35d9a762de064021f3c98f118eb5f4

Contents?: true

Size: 215 Bytes

Versions: 114

Compression:

Stored size: 215 Bytes

Contents

package series

const testVersion = 2

func All(n int, s string) (r []string) {
	for i := 0; n <= len(s); i++ {
		r = append(r, s[i:n])
		n++
	}
	return
}

func UnsafeFirst(n int, s string) string {
	return s[:n]
}

Version data entries

114 entries across 114 versions & 1 rubygems

Version Path
trackler-2.2.0.3 tracks/go/exercises/series/example.go
trackler-2.2.0.2 tracks/go/exercises/series/example.go
trackler-2.2.0.1 tracks/go/exercises/series/example.go
trackler-2.2.0.0 tracks/go/exercises/series/example.go
trackler-2.1.0.55 tracks/go/exercises/series/example.go
trackler-2.1.0.54 tracks/go/exercises/series/example.go
trackler-2.1.0.53 tracks/go/exercises/series/example.go
trackler-2.1.0.52 tracks/go/exercises/series/example.go
trackler-2.1.0.51 tracks/go/exercises/series/example.go
trackler-2.1.0.50 tracks/go/exercises/series/example.go
trackler-2.1.0.49 tracks/go/exercises/series/example.go
trackler-2.1.0.48 tracks/go/exercises/series/example.go
trackler-2.1.0.47 tracks/go/exercises/series/example.go
trackler-2.1.0.46 tracks/go/exercises/series/example.go
trackler-2.1.0.45 tracks/go/exercises/series/example.go
trackler-2.1.0.44 tracks/go/exercises/series/example.go
trackler-2.1.0.43 tracks/go/exercises/series/example.go
trackler-2.1.0.42 tracks/go/exercises/series/example.go
trackler-2.1.0.41 tracks/go/exercises/series/example.go
trackler-2.1.0.40 tracks/go/exercises/series/example.go