This commit is contained in:
Smaug123
2025-09-01 18:38:50 +01:00
parent 80c7b2e425
commit 9901b1dfc4

View File

@@ -82,7 +82,7 @@ let hasPermission (userId : int) : Option<unit> = ...
And here is where we *don't* throw away that information:
```fsharp
let permission (userId : unit) : Option<UserPermissions> = ...
let permission (userId : int) : Option<UserPermissions> = ...
```
The "boolean-equivalent" example has effectively just shoved the result of `permission` through `Option.map ignore`; and `ignore` is a function that should always provoke a *little* unease.