问题标签 [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.

0 投票
1 回答
133 浏览

arguments - `{⊂⍵}` 与 `⊂` 有什么不同?

0 投票
1 回答
145 浏览

multidimensional-array - 如何在 Dyalog APL 中将三元组向量转换为 3xnx3 矩阵?

我有一个包含 9000 个整数元素的向量,其中每组 9 有 3 个我想分离出来的子组,从而产生一个形状为 3 1000 3 的矩阵。这就是我所做的:

哪个可以满足我的要求-但是我可以直接塑造矢量吗?

0 投票
1 回答
77 浏览

stdout - 如何从 Dyalog APL 访问标准输出流 (stdout)

通过 Dyalog APL 语言使用标准输出(stdout)有一些可能性吗?

0 投票
1 回答
133 浏览

keyboard - Dyalog APL 劫持 Windows 密钥并且不将其归还(Fedora 32/Gnome、免费许可证、Kitty)

启动 Dyalog 时,它会直接将 Windows 键映射为 APL 符号键。但是,当我离开 Dyalog 时⎕OFF,它不会以键盘的正常状态返回。我的大多数 WM 键绑定都涉及 Win 键,除了重新启动计算机之外,我没有找到任何其他解决方案。

是否可以覆盖 Dyalog APL 密钥,使其不会自动转换 APL 密钥中的 Win 密钥?

我打算使用一个setxkbmap命令来控制它。

谢谢。

0 投票
2 回答
246 浏览

arrays - Using the each operator with the without function in APL

I have a nested array with the following data:

I would like to remove the numbers from each, so that it looks like this:

I tried using the without function (~) with the each operator (¨) and a right argument of '0123456789' but I get a length error. I also tried putting each number in its own array like this:

but this too resulted in a length error. Any help would be appreciated.

0 投票
2 回答
153 浏览

package-managers - APL 有包管理器吗?

是否有任何 APL 包管理器(例如cargoRust、npmNode.js 或pipPython)?

我想贡献一两个包,但不知道除了通过 GitHub 存储库之外如何做。

0 投票
1 回答
227 浏览

matrix - APL:数组的元素替换和乘法

假设在 APL 语言中,我有一个形状为 10x3 的二维数组。我无法弄清楚如何:分别用 0、10、100、1000 替换整个数组中出现的某些特定数字(例如 1、2、3、4)。所以我想在整个数组中将 1 映射到 0、2 到 10、3 到 100 和 4 到 1000。

0 投票
1 回答
202 浏览

mapping - 如何在 Dyalog APL 中操作多个嵌套数组?

0 投票
2 回答
83 浏览

multidimensional-array - 查找匹配的行

给定两个具有相同列数的矩阵AB,我想知道AB中是否有相同的行。在 Dyalog APL 中,我可以像这样使用split函数:

有没有办法在没有拆分功能的情况下计算相同的结果?

0 投票
1 回答
45 浏览

keyboard - 选择用于输入特殊 APL 字符的键

我在 Linux 上,我刚开始使用 Dyalog APL。但是,我想使用 Control 键而不是 Super 键来输入特殊字符。我怎样才能做到这一点?