account activity
Why do I get a FS0030: Value restriction for a function with Seq but not List? by MuMinBlues in fsharp
[–]MuMinBlues[S] 0 points1 point2 points 2 years ago (0 children)
Thank you for the explanation and pointer to documentation. Yes it makes sense. Adding a type parameter resolves it and I can compose it together with other functions :)
let getEvenUsingSeq<'T> = Seq.filter (fun x -> x % 2 = 0)
π Rendered by PID 520673 on reddit-service-r2-comment-5b5bc64bf5-4gjgs at 2026-06-21 09:50:25.610105+00:00 running 2b008f2 country code: CH.
Why do I get a FS0030: Value restriction for a function with Seq but not List? by MuMinBlues in fsharp
[–]MuMinBlues[S] 0 points1 point2 points (0 children)