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."
Can someone explain what "iota" means here though?
I looked up "iota" and it seems to have nothing to do with generating a range.
Quoting this non-authoritative, but nonetheless correct, wiki:
The function is named after the integer function
⍳
from the programming language APL.
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.