Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
namespace Sample
open WebSharper
module Server =
[<Rpc>]
let DoSomething input =
let R (s: string) = System.String(Array.rev(s.ToCharArray()))
async {
return R input
}
[<Rpc>]
let getData =
async {
return (System.IO.File.ReadAllLines("D:\Data.text")|>string)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment