Formatting
This commit is contained in:
parent
a84522a8ab
commit
5fb072d2a4
1 changed files with 4 additions and 3 deletions
|
@ -54,9 +54,10 @@ scrabbleValueWord (x:xs) = scrabbleValue x + scrabbleValueWord xs
|
|||
|
||||
bestScrabbleWordValueAcc :: [String] -> Int -> Int
|
||||
bestScrabbleWordValueAcc [] acc = acc
|
||||
bestScrabbleWordValueAcc (x:xs) acc = let currentWordValue = scrabbleValueWord x in
|
||||
let bestValue = max currentWordValue acc in
|
||||
bestScrabbleWordValueAcc xs bestValue
|
||||
bestScrabbleWordValueAcc (x:xs) acc =
|
||||
let currentWordValue = scrabbleValueWord x in
|
||||
let bestValue = max currentWordValue acc in
|
||||
bestScrabbleWordValueAcc xs bestValue
|
||||
|
||||
bestScrabbleWordValue :: [String] -> Int
|
||||
bestScrabbleWordValue words = bestScrabbleWordValueAcc words 0
|
||||
|
|
Loading…
Reference in a new issue