Advertisement
Guest User

Untitled

a guest
Jul 24th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let filterAndReturn seq func =
  2.     seq
  3.     |> Seq.filter (fun a -> (fst (func a)) = true)
  4.     |> Seq.map (fun a -> snd (func a))
  5.     |> Seq.toList
  6.  
  7. filterAndReturn (List.toSeq ["1";"2";"3"]) (fun a -> System.Int32.TryParse a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement