Open haf opened 9 years ago
Ping
Pong! Right, brain back in F# :) I'm not sure I can think of an obviously nicer way at the moment, but I'm not totally sure what SessionOptions looks like. Can you point me to the wider source, and I'll have a further think!
type SessionOptions = SessionOption list
type SessionOption =
| LockDelay of Duration
...
| TTL of Duration
Thanks for helping out =) Creds!
I've been trying to find a better way to write this with the current API, but can't think of it at the moment:
I'm mostly thinking how the last two lines with contents both declare Json data and how I have to use
snd
to get the Json result of the monad value.