Comments (3)
Also: with scan-left() and scan-right() we chose to return a sequence of arrays rather than an array of sequences. I don't feel strongly that one form is better than the other, but there is merit in consistency. The sequence-of-arrays is certainly easier to process for some use cases, for example to get all the distinct values in the second column you can write
distinct-values($result?2)
whereas with an array of sequences it would have to be something likedistinct-values(array:for-each($result, fn(){.[2])))
or perhapsdistinct-values(array:members($result)?value[2])
.
Ignore this comment. The function already produces a sequence of arrays.
I suggest renaming it csv-to-arrays
.
from qtspecs.
csv-to-simple-rows()
seems a very clumsy name. Wouldn't csv-to-array()
be clearer?
from qtspecs.
Related (#748):
- The input argument should be named
$value
(in alignment withfn:parse-xml
). - The input argument could be enhanced to
union(xs:string, xs:hexBinary, xs:base64Binary)?
- I would suggest adding
fn:csv-doc
.
from qtspecs.
Related Issues (20)
- Bare brace ambiguity resolution in practice HOT 4
- Typos in fn:format-number
- The escape-solidus option should apply to xml-to-json HOT 1
- Grammar rules: redundancies HOT 1
- Nothing HOT 67
- unparsed-text-available() signature
- declare item type → item-type
- Names of private functions in XQuery library modules HOT 4
- Specs: new vs. updated features HOT 3
- map:get and array:get HOT 34
- Occurrence indicator meaning "exactly one" HOT 8
- In the EBNF, use explicit separator syntax
- Further improvements to BuiltInKeywords test needed HOT 3
- fn:round: `rounding-mode` → `mode`? HOT 1
- (type)switch: braces after `case` keyword HOT 2
- Unknown option: FORG0013 → XPTY0004 HOT 2
- XQFO: Editorial HOT 1
- Duplicate keys in map constructor HOT 3
- XSLT: names of functions in pattern HOT 3
- User defined operators HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtspecs.