[erlang-questions] [eeps] EEP 9
Per Gustafsson
per.gustafsson@REDACTED
Sat Mar 8 09:25:08 CET 2008
>> nth(N, Bin) -> Value
>>
>> To also satisfy 0-indexers there should probably be a
>>
>> nth0(N, Bin) -> Value
>>
>> just as in the lists module
>
> I can't find a nth0 in lists, at least not in R12B.
>
> 3> lists:nth(1, "ABC").
> 65
> 4> lists:nth0(1, "ABC").
> ** exception error: undefined function lists:nth0/2
>
> BR /Fredrik
I must have dreamed this up :) Well if that function does not exist it
does not need to exist in this module either.
Per
More information about the erlang-questions
mailing list