J,不可找到的动词
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是
#
。解释:这样的动词(1或2个符号,很少有3个)称为原语。
#
原语被称为Tally
作为单子(有效地计算项目,返回第一个维度的计数),以及Copy
作为二元组,它复制右侧参数的次数与左侧参数所示的次数相同。当然,在这种情况下,您的左右元素必须具有相同的长度(或者其中一个元素是标量,如果另一个不是标量)。例子:
It's
#
.Explanation: Such verbs (1 or 2 symbols, rarely 3) are called primitives. The
#
primitive is calledTally
as a monad (effectively tallies the items, returning the count on the first dimension), andCopy
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: