How does the function 'iota' get its name?

Sergey kornburn at yandex.ru
Sun Feb 12 21:54:31 UTC 2023


On Sunday, 12 February 2023 at 19:39:49 UTC, Steven Schveighoffer 
wrote:
> On 2/12/23 2:17 PM, ccmywish wrote:
>> Hi, everyone!
>> 
>> I'm very new to D. I see a function called 
>> [iota](https://dlang.org/library/std/range/iota.html)
>> 
>> `Iota` seems a [Greek 
>> letter](https://en.wikipedia.org/wiki/Iota). Why does it 
>> relate to range?
>
> It came from C++. See notes here: 
> https://en.cppreference.com/w/cpp/algorithm/iota
>
> -Steve

Which took it from APL
https://aplwiki.com/wiki/Index_Generator


More information about the Digitalmars-d-learn mailing list