diff options
author | Tomasz Chojnacki <tomaszchojnacki2001@gmail.com> | 2022-12-11 15:14:53 +0100 |
---|---|---|
committer | Tomasz Chojnacki <tomaszchojnacki2001@gmail.com> | 2022-12-11 15:14:53 +0100 |
commit | eb7cdaab9b9c13b3594e0abdbbff6f72f8cb4807 (patch) | |
tree | a03f4459c88aa028237a31d6ed159d236ab2d4f3 /aoc-2022-dotnet/Common | |
parent | 520a01ed88fafb165ecb3eaa9fd3e39db0431722 (diff) | |
download | gleam_aoc2020-eb7cdaab9b9c13b3594e0abdbbff6f72f8cb4807.tar.gz gleam_aoc2020-eb7cdaab9b9c13b3594e0abdbbff6f72f8cb4807.zip |
Finish day 11
Diffstat (limited to 'aoc-2022-dotnet/Common')
-rw-r--r-- | aoc-2022-dotnet/Common/Util.fs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/aoc-2022-dotnet/Common/Util.fs b/aoc-2022-dotnet/Common/Util.fs index 6393aad..34bf8ff 100644 --- a/aoc-2022-dotnet/Common/Util.fs +++ b/aoc-2022-dotnet/Common/Util.fs @@ -30,6 +30,8 @@ module Util = |> Seq.map (Seq.map string >> String.concat "") |> String.concat "\n" + let composition n f = List.replicate n f |> List.reduce (>>) + let topN n xs = let rec insertSorted x = function |