Sha256: 4d763729139f57e53036f786fe49bae54e3dff419be28c9c41e406b5e48fb812

Contents?: true

Size: 465 Bytes

Versions: 123

Compression:

Stored size: 465 Bytes

Contents

module Etl

open System

let normalizeLetter letter = Char.ToLowerInvariant(letter)

let transformLetterWithScore score lettersWithScore letter = 
    Map.add (normalizeLetter letter) score lettersWithScore

let transformScoreWithLetters lettersWithScore score letters = 
    List.fold (transformLetterWithScore score) lettersWithScore letters

let transform scoresWithLetters: Map<char, int> = 
    Map.fold transformScoreWithLetters Map.empty scoresWithLetters

Version data entries

123 entries across 123 versions & 1 rubygems

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