问题标签 [dyalog]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
matrix - 如何动态计算增加的总和?
我有以下数据:
第一行是字符,第二行和第三行是数字。
如何根据第 3 行中的数字更改第二行?
例如,第 3 行,如果数字为 3,则第 2 行对应的数字乘以 2,如果第 3 行数字为 1,则将第 2 行的数字加 3:
另外,我如何动态计算这些增加的总和?
Dyalog APL 17.0+
scope - 访问命名空间脚本变量
考虑 Dyalog APL 中的以下命名空间脚本:
如果我运行Test.G然后Test.x,我得到的输出为零。怎么来的?如何在Test.F中设置Test.x?
arrays - APL 中 x,¨y 的语义:即,在 APL 中映射一个连接是什么意思?
考虑表达式(1 2 3),¨(4 5 6)
。我希望这能够“将操作映射到、 和(1 2 3),
中的每一个上4
,给出的答案如下:5
6
然而,这不是答案!在 Dyalog APL 中评估的答案是:
如何?这个答案背后的原因是什么?我的等式推理哪里出错了?是否还有更多我不正确的心理模型, (comma)
以及¨(map)
我应该注意的“陷阱”?
character-encoding - 在 Classic Dyalog APL 字符集中查找字符
在 Dyalog APL 中,字符向量 ⎕AV 包含 Classic Dyalog APL 字符集中的所有字符。我在哪里可以找到有关 ⎕AV 中每个字符代表什么的信息?我试图找出 ASCII 编码中的每个控制字符对应于 ⎕AV 以过滤掉在表单中输入的无效字符。
command-line-arguments - Dyalog APL: how to write standalone files that can be executed?
I now know how to use the APL interpreter, but I'm quite confused about how to write APL into a file and then run the said file. I currently write Dyalog APL using the ride IDE. What I now want to do is to:
- Use the ride IDE to develop programs (how else do I access the keybindings?).
- Save my program to a file.
- Run the program from the command line, with command line arguments (how do I take command-line arguments?)
- Distribute my program so others can use them.
Most of the documentation online refers to an "APL session", which makes me think that perhaps there's some Smalltalk like thing going one, where one can only distribute the "live image" or some such. If that is the case, I have a different set of questions:
- How do I save and load these image files?
- How do I distribute image files?
- Can I execute such code from the command line, to take command-line arguments?
In general, I'm quite confused about how to write software in APL!
EDIT: I'm on Ubuntu, and I'd like to target Linux in general. Windows/macOS support would be a plus, but I'm currently interested in Linux support.
string - 在 Dyalog APL 中更改标题
我正在使用 Dyalog APL 17.0 版,但在执行一行时遇到了一些麻烦:
capt
是一个字符向量,并且zloc
是一个标量数。我知道很多人不使用这种语言,但我们将不胜感激。
unicode - 创建 apl 语言栏的文本副本
我想将 Dyalog APL 语言栏的图片嵌入到文本和 PowerPoint 材料中。我怎样才能做到这一点?能够选择并粘贴它会很好。