Created
July 13, 2017 01:38
-
-
Save gerardtoconnor/4596078c7ec19c2ae1433bc764ab136a to your computer and use it in GitHub Desktop.
Showing similarities to option bind format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let route (path : string) : HttpHandler = | |
fun Some' ctx -> | |
if (getPath ctx).Equals path | |
then Some' ctx | |
else Task.FromResult None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment