Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.23 KB | None | 0 0
  1. let splitColons (x:string) =
  2.     x.Split(':')
  3.    
  4. let str = "Hello:This:Is:A:String:"
  5.  
  6. //This is invalid.
  7. let splitAndRemoveBlanks x =
  8.     splitColons x
  9.     |> List.filter (fun x -> x != "")
  10.  
  11. //In Haskell I would use "do"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement