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.159 tracks/go/exercises/etl/example.go
trackler-2.2.1.158 tracks/go/exercises/etl/example.go
trackler-2.2.1.157 tracks/go/exercises/etl/example.go
trackler-2.2.1.156 tracks/go/exercises/etl/example.go
trackler-2.2.1.155 tracks/go/exercises/etl/example.go
trackler-2.2.1.154 tracks/go/exercises/etl/example.go
trackler-2.2.1.153 tracks/go/exercises/etl/example.go
trackler-2.2.1.152 tracks/go/exercises/etl/example.go
trackler-2.2.1.151 tracks/go/exercises/etl/example.go
trackler-2.2.1.150 tracks/go/exercises/etl/example.go
trackler-2.2.1.149 tracks/go/exercises/etl/example.go
trackler-2.2.1.148 tracks/go/exercises/etl/example.go
trackler-2.2.1.147 tracks/go/exercises/etl/example.go
trackler-2.2.1.146 tracks/go/exercises/etl/example.go
trackler-2.2.1.145 tracks/go/exercises/etl/example.go
trackler-2.2.1.144 tracks/go/exercises/etl/example.go
trackler-2.2.1.143 tracks/go/exercises/etl/example.go
trackler-2.2.1.142 tracks/go/exercises/etl/example.go
trackler-2.2.1.141 tracks/go/exercises/etl/example.go
trackler-2.2.1.140 tracks/go/exercises/etl/example.go