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.78 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.77 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.76 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.75 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.74 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.73 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.72 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.71 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.70 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.69 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.68 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.67 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.66 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.65 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.64 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.63 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.62 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.61 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.60 tracks/fsharp/exercises/etl/Example.fs
trackler-2.2.1.59 tracks/fsharp/exercises/etl/Example.fs