Tidy up 2024 day 11 code.
This commit is contained in:
@@ -6,6 +6,11 @@ let distance1 a b = abs (a - b)
|
||||
let strings_of_file fname =
|
||||
In_channel.with_open_text fname In_channel.input_lines
|
||||
|
||||
let string_of_file fname =
|
||||
match In_channel.with_open_text fname In_channel.input_line with
|
||||
| Some x -> x
|
||||
| None -> failwith "Aoc.string_of_file"
|
||||
|
||||
let main prep parts =
|
||||
try
|
||||
match Sys.argv with
|
||||
|
Reference in New Issue
Block a user