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.98 tracks/go/exercises/etl/example.go
trackler-2.2.1.97 tracks/go/exercises/etl/example.go
trackler-2.2.1.96 tracks/go/exercises/etl/example.go
trackler-2.2.1.95 tracks/go/exercises/etl/example.go
trackler-2.2.1.94 tracks/go/exercises/etl/example.go
trackler-2.2.1.93 tracks/go/exercises/etl/example.go
trackler-2.2.1.92 tracks/go/exercises/etl/example.go
trackler-2.2.1.91 tracks/go/exercises/etl/example.go
trackler-2.2.1.90 tracks/go/exercises/etl/example.go
trackler-2.2.1.89 tracks/go/exercises/etl/example.go
trackler-2.2.1.88 tracks/go/exercises/etl/example.go
trackler-2.2.1.87 tracks/go/exercises/etl/example.go
trackler-2.2.1.86 tracks/go/exercises/etl/example.go
trackler-2.2.1.85 tracks/go/exercises/etl/example.go
trackler-2.2.1.84 tracks/go/exercises/etl/example.go
trackler-2.2.1.83 tracks/go/exercises/etl/example.go
trackler-2.2.1.82 tracks/go/exercises/etl/example.go
trackler-2.2.1.81 tracks/go/exercises/etl/example.go
trackler-2.2.1.80 tracks/go/exercises/etl/example.go
trackler-2.2.1.79 tracks/go/exercises/etl/example.go