3 ms·
Most APLs work just fine with n-dimensional arrays, even though the language only lets you write 1-dimensional array literals. So in practice, we write 1-dimens
by hoosieree 4y ago
Most APLs work just fine with n-dimensional arrays, even though the language only lets you write 1-dimensional array literals. So in practice, we write 1-dimensional arrays and reshape them as needed.
My point is just because you use a sequence-based input method (a programming language) doesn't mean you can't express structured data.
For example jq[1] does a decent job of expressing queries and transformations on JSON (JSON data are trees rather than arbitrary graphs). But trees are a very important type of graph, and I think a language with first-class support for trees would be in a better position to handle arbitrary graphs than a typical programming language.
[1]: https://stedolan.github.io/jq/ https://stedolan.github.io/jq/