This file contains hidden or 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
| module Pick | |
| // tested on dotnet 10, Avalonia 12.0.1 | |
| // | |
| // source API docs, e.g.: https://learn.microsoft.com/en-us/windows/win32/api/wingdi/ns-wingdi-logfonta | |
| // | |
| open System | |
| open System.Runtime.InteropServices | |
| open Avalonia |
This file contains hidden or 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
| // Odin Error Challenge in F# | |
| // see: https://rm4n0s.github.io/posts/3-error-handling-challenge/#odins-teachings-in-action | |
| // try pasting the code into: https://sharplab.io/ | |
| type F1_Error = | |
| | None | |
| | Account_Is_Empty | |
| | Investment_Lost | |
| type F2_Error = |