-
-
Save isaacabraham/4fcd68fa02b60df3acdd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let calculateFormRec results = | |
let rec calculateFormRec' output results = | |
match results, output with | |
| [], _ -> output |> List.rev | |
| result :: results, output -> | |
let result = (result |> convertToPoints) + output.Head | |
calculateFormRec' (result :: output) results | |
results |> calculateFormRec' [ 0 ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment