Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Understood. You want to escape curly braces and let the last expression be the returned one. F# does implicitly return the last expression.

> The expression is the body of the function, the last expression of which generates a return value. Examples of valid lambda expressions include the following:

https://learn.microsoft.com/en-us/dotnet/fsharp/language-ref...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: