-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Base spreadsheet parsers on string columns #394
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets say i have a sequence of header strings and a seq<seq> for table-body-values. Which functions must i use to generate a ArcTable? Are these findable? Do they exist in this state?
open ARCtrl.Spreadsheet
let headerStrings : string seq = ...
let rowStringSeqs : string seq seq = ...
let columns =
Seq.append [headerStrings] rowStringSeqs
|> Seq.transpose
let columnsList =
columns
|> Seq.toList
|> List.map (Seq.toList)
let arcTable = ArcTable.composeColumns columnsList |
love it! |
But thinking about switching from list to array. Because I have quite a few |
Would be fine with it 👍 |
Now it's open ARCtrl.Spreadsheet
let headerStrings : string seq = ...
let rowStringSeqs : string seq seq = ...
let columns =
Seq.append [headerStrings] rowStringSeqs
|> Seq.transpose
let columnsArray =
columns
|> Seq.toArray
|> Array.map (Seq.toArray)
let arcTable = ArcTable.composeColumns columnsArray |
closes #389