Choose while function

A function that is like 'Seq.choose' but stops producing values as soon as the first 'None' value is produced.