OutOfMemoryException when paginating a large F# sequence with Seq.skip and Seq.take
An F# application (targeting a recent .NET, FSharp.Core 8.x assumed) needs to expose paged results from a large dataset represented as a seq<'T> . The intended approach is to bound the query with Seq.skip (page * pageSize) followed by Seq.take pageSize , relying on lazy evaluation so only the requested page is materialized. Two concerns are unresolved.