Created
August 2, 2018 10:54
-
-
Save giuliohome/b61eef85a03e3ffa719b0fa5d27deb6f to your computer and use it in GitHub Desktop.
F# record type as business model
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
// business model | |
type Invoice = { CptyName: string; CptyNum: int; InvoiceNr: string; amount : decimal; curr: string; buysell: ActivePassive} | |
// array extraction from Excel with type provider | |
let ActiveInvoice = | |
ActiveInvoiceExcel.Data | |
|> Seq.map ( fun line -> { InvoiceNr = line.``Numero documento``; ... }) | |
|> Seq.toArray |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment