[erlang-questions] return type of lists:foreach

Joel Reymont joelr1@REDACTED
Sat Oct 15 16:39:20 CEST 2011


On Oct 15, 2011, at 3:28 PM, Kostis Sagonas wrote:

> The return type of lists:foreach/2 is 'ok'.  If the documentation says void() it should be fixed.  There is no void().


You are absolutely right. none() is reserved for when the anonymous function you pass to lists:foreach/2 does not take any arguments ;-).

Mea maxima culpa!

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------




More information about the erlang-questions mailing list