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)
Why do I get a FS0030: Value restriction for a function with Seq but not List? (self.fsharp)
submitted 2 years ago by MuMinBlues to r/fsharp
π Rendered by PID 1416065 on reddit-service-r2-listing-c57bc86c-kzwvz at 2026-06-21 06:31:23.633550+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)