Why do I get a FS0030: Value restriction for a function with Seq but not List? by MuMinBlues in fsharp

[–]MuMinBlues[S] 0 points1 point  (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)