[erlang-questions] return type of lists:foreach
Kostis Sagonas
kostis@REDACTED
Sat Oct 15 16:28:20 CEST 2011
On 10/15/11 17:16, Joel Reymont wrote:
> What is the return type of lists:foreach?
>
> I cannot find void() in the type spec reference manual and no_return() is reserved for throwing exceptions.
The return type of lists:foreach/2 is 'ok'. If the documentation says
void() it should be fixed. There is no void().
Kostis
PS. no_return() or none() have nothing to do with lists:foreach/2 type.
More information about the erlang-questions
mailing list