From eb7cdaab9b9c13b3594e0abdbbff6f72f8cb4807 Mon Sep 17 00:00:00 2001 From: Tomasz Chojnacki Date: Sun, 11 Dec 2022 15:14:53 +0100 Subject: Finish day 11 --- aoc-2022-dotnet/Common/Util.fs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'aoc-2022-dotnet/Common/Util.fs') 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 -- cgit v1.2.3