Skip to content

Instantly share code, notes, and snippets.

@jackfoxy
Last active February 19, 2019 22:13
Show Gist options
  • Save jackfoxy/e438097ae346c03b23002fc0df3b354b to your computer and use it in GitHub Desktop.
Save jackfoxy/e438097ae346c03b23002fc0df3b354b to your computer and use it in GitHub Desktop.
//not tested as fsx, but insert into existing fs in a project and you should see error messages other than bad tab
//did not let me save gist with tabs
//so insert them yourself in some other editor in line 21
type Production =
{
Ident : int
Year: int
Month: int
OilProduced: float
WaterProduced: float
GasProduced: float
DaysProducing: int option
}
let production =
{
Ident = 1
Year = 2019
Month = 2
OilProduced = 10.
WaterProduced = 20.
GasProduced = 30.
DaysProducing = Some 28
} |> Some
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment