Sha256: 9ed729da151e4efeac61abfaaa7b0b26f810de4fcb06cf1322681006a7e70051

Contents?: true

Size: 252 Bytes

Versions: 219

Compression:

Stored size: 252 Bytes

Contents

package etl

import "strings"

type legacy map[int][]string

func Transform(in legacy) (out map[string]int) {
	out = make(map[string]int)
	for key, values := range in {
		for _, val := range values {
			out[strings.ToLower(val)] = key
		}
	}
	return
}

Version data entries

219 entries across 219 versions & 1 rubygems

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