What is iota function full name

KlausO oberhofer at users.sf.net
Fri Jun 21 10:01:40 UTC 2019


So basically iota spills Increments Over The Array.

Am 21.06.2019 um 11:18 schrieb Jonathan M Davis:
> On Friday, June 21, 2019 3:01:17 AM MDT lili via Digitalmars-d-learn wrote:
>> Hi Guys:
>>       What is range.iota function full name
> 
> iota _is_ its full name. It's named after an STL function which does
> basically the same with iterators in C++:
> 
> https://en.cppreference.com/w/cpp/algorithm/iota
> 
> Apparently, C++ got it from the APL programming language, which uses Greek
> characters and other symbols that you can't find on most keyboards, which
> makes APL code more like what you see in equations in a math textbook, and
> APL uses the Greek letter iota for a function with similar behavior to the
> C++ and D functions. And since unlike APL, C++ couldn't use the Greek
> letter, when they named their version of the function, they used the name of
> the letter rather than the letter. And then D's function name was named
> after the C++ function. So, iota is the name of the function, and it doesn't
> stand for anything. It's just the name of the Greek letter that was used for
> a similar function in another language that most programmers these days have
> probably never heard of.
> 
> - Jonathan M Davis
> 



More information about the Digitalmars-d-learn mailing list