为什么叫iota? [英] Why is it Called iota?
问题描述
C ++ 11引入了一个名为 iota
.
C++11 introduced a function called iota
. Which "Assigns to every element in the range [first,last) successive values of val, as if incremented with ++val after each element is written."
有人可以在这里解释"iota"是什么意思吗?
Can someone explain what "iota" means here though?
我查找了"iota" ,它似乎与生成范围无关
I looked up "iota" and it seems to have nothing to do with generating a range.
推荐答案
引用此非权威但仍然正确的wiki:
Quoting this non-authoritative, but nonetheless correct, wiki:
该函数以编程语言APL中的整数函数
⍳
命名.
在APL中,⍳
函数(用希腊字母的第九个字母iota表示)用于创建从零开始的,连续的,指定长度的整数的数组.
In APL, the ⍳
function (represented with the ninth letter of the Greek alphabet, iota) is used to create a zero-based array of consecutive, ascending integers of a specified length.
这篇关于为什么叫iota?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!