Advertisement
Guest User

Untitled

a guest
Mar 27th, 2014
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.44 KB | None | 0 0
  1. let replace (str:string) =
  2.     str.Replace("{0}", "\"\"\"")
  3. let code = replace """
  4. // comment
  5. // more comment
  6.  
  7. [<assembly: System.AssemblyVersionAttribute("1.0.0.0")>]
  8. [<TestAttr; TestAttr2(Test.Version)>]
  9. module Test
  10.  
  11. /* multiline comment
  12.   here */
  13.  
  14. let a = 5
  15. let fib n =
  16.    let fib' n a b =
  17.        match n with
  18.        | 0 -> a
  19.        | _ -> fib' (n - 1) b (a + b)
  20.    
  21.    fib' n
  22.  
  23. let longStr = {0}this
  24. is a test{0}
  25. """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement