Advertisement
Guest User

Untitled

a guest
May 29th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public static FSharpOption<T> Option`1.filter.Static<T>(FSharpFunc<T, bool> f, FSharpOption<T> x)
  2. {
  3. FSharpOption<T> option = x;
  4. if (option != null)
  5. {
  6. FSharpOption<T> option2 = option;
  7. T v = option2.get_Value();
  8. if (f.Invoke(v))
  9. {
  10. return FSharpOption<T>.Some(option2.get_Value());
  11. }
  12. }
  13. return null;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement