Advertisement
Guest User

Untitled

a guest
Sep 30th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.30 KB | None | 0 0
  1.     let marketNames = [| "# 0"; "# 1"; "# 2"; "# 3" |]
  2.  
  3.     let lookupMarketId =
  4.         function
  5.         | "# 1" -> Choice1Of2 1
  6.         | "# 2" -> Choice1Of2 2
  7.         | marketName -> Choice2Of2 (sprintf "Unable to lookup market '%s'" marketName)
  8.  
  9.     let marketIds = ?
  10.     let marketErrors = ?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement