Fun, fun, Funs?
Ulf Wiger
etxuwig@REDACTED
Thu Sep 28 08:01:31 CEST 2000
On Wed, 27 Sep 2000, Andy with Recycled Electrons wrote:
>Hi...
>
>I'm trying to write a procedure to map a fun down a list...
>
>Can anyone tell me how this differs from the book?
>
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>215: f(Num, Mean) -> (Num - Mean)*(Num - Mean).
>216:
>217: Sub = fun f/1.
Line 217 is an assignment standing on its own betwen functions.
This is not legal. Move this assignment into the getVariance/1
function.
/Uffe
--
Ulf Wiger tfn: +46 8 719 81 95
Network Architecture & Product Strategies mob: +46 70 519 81 95
Ericsson Telecom AB, Datacom Networks and IP Services
Varuvägen 9, Älvsjö, S-126 25 Stockholm, Sweden
More information about the erlang-questions
mailing list