why module:function?

View: New views
2 Messages — Rating Filter:   Alert me  

why module:function?

by cnb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

a lot of often-used functions like sort and map I have to write module:func to access, why aren't they a part of the shell-functions?

or maybe they arent that often used and listcomprehensions are the idiomatic way instead of map?



Låna pengar utan säkerhet.
Sök och jämför lån hos Kelkoo.
_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions

Re: why module:function?

by Kevin Scaldeferri :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Jul 23, 2008, at 4:29 AM, Circular Function wrote:

> a lot of often-used functions like sort and map I have to write  
> module:func to access, why aren't they a part of the shell-functions?



-import(lists, [map/2, ...]).



-k
_______________________________________________
erlang-questions mailing list
erlang-questions@...
http://www.erlang.org/mailman/listinfo/erlang-questions
LightInTheBox - Buy quality products at wholesale price