为什么叫iota? [英] Why is it Called iota?

查看:67
本文介绍了为什么叫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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆