<div dir="ltr">Hi,<div>I'm a beginner of erlang and have found some problems in my project. After doing some google I found here and wish someone could help me.</div><div>  I'm using the erlang structure 'dict' for a key-value table in my program, but I found that the return value of dict:fetch and dict:find is actually [Value] or {ok, [Value]} (means I get a list containing the value instead of the original one). However, this is not the problem, the real problem is, this happens only in some situations which I can't find what it is. </div>
<div>An example:</div><div><div>Eshell V5.8.5  (abort with ^G)</div><div>1> A = dict:new().</div><div>{dict,0,16,16,8,80,48,</div><div>      {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},</div><div>      {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]}}}</div>
<div>2> A2 = dict:append(key, value, A).</div><div>{dict,1,16,16,8,80,48,</div><div>      {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]},</div><div>      {{[],[],[],[],[],[],[],[],[],</div><div>        [[key,value]],</div>
<div>        [],[],[],[],[],[]}}}</div><div>3> dict:find(key, A2).</div><div>{ok,[value]}</div></div><div><br></div><div>  My erlang environment is R14B04 on  ubuntu 12.04. Could any one tell me why the return value of dict:find is not the same as the doc? </div>
<div><br></div><div>Best regards, </div><div>Jingyi Wang</div></div>