I was trying to use Seq.first today, and the compiler says it has been deprecated in favor of Seq.tryPick. It says that that it applies a function and returns the first result that returns Some. I guess I can just say fun x -> x!=0 since I know the first one will return Some in my case, but what is the proper constraint to put here? What is the correct syntax?
To clarify, I want to use it in the format:
let foo(x:seq) = x.filter(fun x -> x>0) |> Seq.tryPick (??)