Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/FSharpx.Collections/Collections.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading