SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let add x y = x + y
  2.  
  3. let inc = add 1
  4.  
  5. 5 |> inc |> printf "%A"
  6. printf "%A" <| inc  5
  7.  
  8. printf "%A" (inc 5)
  9.  
  10.  
  11. let executeQuery connString query =
  12.     printf "%s %s" connString  query
  13.  
  14. executeQuery "myConnnString" "myquery"
  15.  
  16. executeQuery "myConnString" "myquery2"
  17.  
  18. let myOracleExecuteQuery = executeQuery "myConnString"
  19.  
  20. myOracleExecuteQuery "only query"
  21.  
  22.  
  23.  
  24. let executeQuery2 query connString  =
  25.      printf "%s %s" connString  query
  26.  
  27. let executeQuery3  connString  query =
  28.      executeQuery2   query connString
  29.  
  30. let flip f x y = f y x
  31.  
  32. let executeQuery4 = executeQuery2 |> flip
  33.  
  34.  
  35. let myOracleExecuteQuery2 = executeQuery4 "myConnString"
  36. myOracleExecuteQuery2 "only query"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top