initial commit

This commit is contained in:
2025-08-03 20:16:55 -07:00
commit 87a130499d
89 changed files with 10241 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
module _22
open System.IO
let nameScores =
let names =
File.ReadAllLines(@"22_names.txt")
|> Seq.collect (fun l -> l.Split(','))
|> Seq.map (fun w -> w.Substring(1, w.Length - 2))
|> Seq.sort
names
|> Seq.mapi (fun i name -> (i + 1) * common.wordValue name)
|> Seq.sum