Sha256: 0bd332da0db81b7a320373935adb2910a552ce9231085c6bcc76930ce73b6d4e

Contents?: true

Size: 335 Bytes

Versions: 396

Compression:

Stored size: 335 Bytes

Contents

module ETL (transform) where
import Data.Char (toLower)
import qualified Data.Map as M

type PointValue = Int
type LowerTile = Char
type UpperTile = Char

transform :: M.Map PointValue [UpperTile] -> M.Map LowerTile PointValue
transform = M.fromList . concatMap go . M.toList
  where go (v, tiles) = zip (map toLower tiles) (repeat v)

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.179 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.178 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.177 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.176 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.175 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.174 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.173 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.172 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.171 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.170 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.169 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.167 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.166 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.165 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.164 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.163 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.162 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.161 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs
trackler-2.2.1.160 tracks/haskell/exercises/etl/examples/success-standard/src/ETL.hs