[erlang-questions] return type of lists:foreach
Joel Reymont
joelr1@REDACTED
Sat Oct 15 16:33:42 CEST 2011
On Oct 15, 2011, at 3:28 PM, Kostis Sagonas wrote:
> PS. no_return() or none() have nothing to do with lists:foreach/2 type.
I beg to differ!
typer x.erl
%% File: "x.erl"
%% -------------
-spec x() -> none().
cat x.erl
-module(x).
-compile([export_all]).
x() -> lists:foreach(fun() -> ok end, []).
--------------------------------------------------------------------------
- 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