From 9a4666f7dd10a98746db95eeca98282367111e23 Mon Sep 17 00:00:00 2001 From: "Andres G. Aragoneses" Date: Wed, 7 Jan 2026 19:32:32 +0800 Subject: [PATCH] Add docs for tryHeadTail It was not showing up in the API reference page of FSharpx.Collections, so hopefully with this, it will appear. --- src/FSharpx.Collections/Collections.fs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/FSharpx.Collections/Collections.fs b/src/FSharpx.Collections/Collections.fs index 079de5d0..6b3b2805 100644 --- a/src/FSharpx.Collections/Collections.fs +++ b/src/FSharpx.Collections/Collections.fs @@ -69,6 +69,7 @@ module Seq = else Some(LanguagePrimitives.DivideByInt<( ^a)> acc count) + /// The same as Seq.tryHead but also returning the tail alongside the head (in a tuple) let tryHeadTail<'T>(sequence: seq<'T>) : Option<'T * seq<'T>> = match Seq.tryHead sequence with | None -> None