J,不可找到的动词

发布于 2024-10-05 00:45:02 字数 128 浏览 0 评论 0原文

1 0 0 1 verb 1 2 3 4
  result:1 4

该动词会从右侧列表中删除左侧列表中包含 0 的项目。我记得在词汇表中看到过这个动词,但我再也找不到了。有谁知道这个动词吗?

1 0 0 1 verb 1 2 3 4
  result:1 4

The verb drops the items from the list on the right that have a 0 in the list on the left. I can remember seeing this verb in the Vocabulary but I can't find it again. Does anybody know this verb?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

兔小萌 2024-10-12 00:45:02

#

解释:这样的动词(1或2个符号,很少有3个)称为原语。 # 原语被称为 Tally 作为单子(有效地计算项目,返回第一个维度的计数),以及 Copy 作为二元组,它复制右侧参数的次数与左侧参数所示的次数相同。当然,在这种情况下,您的左右元素必须具有相同的长度(或者其中一个元素是标量,如果另一个不是标量)。

例子:

   1 0 0 1 # 1 2 3 4
1 4

It's #.

Explanation: Such verbs (1 or 2 symbols, rarely 3) are called primitives. The # primitive is called Tally as a monad (effectively tallies the items, returning the count on the first dimension), and Copy as a dyad, where it copies the right arguments as many times as indicated on the left argument. Of course, in this case, your right and left elements must be the same length (or that one of them is scalar if the other is not).

Example:

   1 0 0 1 # 1 2 3 4
1 4
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文