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.1.56 tracks/go/exercises/series/example.go
trackler-2.2.1.55 tracks/go/exercises/series/example.go
trackler-2.2.1.54 tracks/go/exercises/series/example.go
trackler-2.2.1.53 tracks/go/exercises/series/example.go
trackler-2.2.1.52 tracks/go/exercises/series/example.go
trackler-2.2.1.51 tracks/go/exercises/series/example.go
trackler-2.2.1.50 tracks/go/exercises/series/example.go
trackler-2.2.1.49 tracks/go/exercises/series/example.go
trackler-2.2.1.48 tracks/go/exercises/series/example.go
trackler-2.2.1.47 tracks/go/exercises/series/example.go
trackler-2.2.1.46 tracks/go/exercises/series/example.go
trackler-2.2.1.45 tracks/go/exercises/series/example.go
trackler-2.2.1.44 tracks/go/exercises/series/example.go
trackler-2.2.1.43 tracks/go/exercises/series/example.go
trackler-2.2.1.42 tracks/go/exercises/series/example.go
trackler-2.2.1.41 tracks/go/exercises/series/example.go
trackler-2.2.1.40 tracks/go/exercises/series/example.go
trackler-2.2.1.39 tracks/go/exercises/series/example.go
trackler-2.2.1.38 tracks/go/exercises/series/example.go
trackler-2.2.1.37 tracks/go/exercises/series/example.go