diff options
Diffstat (limited to 'aoc-2022-dotnet/Common/Util.fs')
-rw-r--r-- | aoc-2022-dotnet/Common/Util.fs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/aoc-2022-dotnet/Common/Util.fs b/aoc-2022-dotnet/Common/Util.fs index a9f3a1e..6393aad 100644 --- a/aoc-2022-dotnet/Common/Util.fs +++ b/aoc-2022-dotnet/Common/Util.fs @@ -25,6 +25,11 @@ module Util = | [ x; y ] -> x, y | _ -> failwith "Invalid string format!" + let matrixToString m = + m + |> Seq.map (Seq.map string >> String.concat "") + |> String.concat "\n" + let topN n xs = let rec insertSorted x = function |