new to Erlang.I am about to start writing some code.The solution I have in mind can go one of two ways.I can do a bunch of mathematical calculations, or I can code this up largely as pattern matching.
I need create subdirectory in specific directory. In erlang docs i find only file:make_dir/1 which create dir in the project source dir. How can i create directory in other dir?
I have a list which I have used the fu开发者_如何学JAVAnction lists:nth() on to return the value of an element at a certain index. Does anyone know how I can edit this value?
I established a connection with a client this way: gen_tcp:listen(1234,[binary,{packet,0},{reuseaddr,true},{active,false},{recbuf,2048}]).
So I have been using ETS - works great. However, I use it as a cache of route data - which I load when the module loads, and save when a change is made (it is read far more than written).
When starting gen_server\'s from a supervisor 开发者_JS百科(which itself is started by a application) I have the problem that when the start_link of the gen_server doesn\'t return {ok, ...} but {error
There is the following block: receive ... {raw, Text} -> send(Socket, Text), master(State); ... end. I am wondering if it is possible to match a regexp in Text and have a simple c开发者_JAVA百科
I just tried \"make\" in Chicago Boss(Erlang web framework) dir and failed with error {\"init terminating in do_boot\",{undef,[{make,all,[]},{init,start_it,1},{init,start_em,开发者_Go百科1}]}}
The lists module provides a function to find the maximum of a list, lists:max(List). Is there a function like lists:maxfun(Fun, List)? The given fun should be used for all Elements and maxfun should
Given the following m开发者_高级运维odule: run(N)-> timer:tc(?MODULE,fct,[N]). I call it by run(100). from a shell and I have this: