<div dir="ltr"><div>According to eep-43, the transformation function in maps:map/2 should return a new value for each key and value provided. However, the current implementation expects the function to return a key/value tuple.<br>
<br></div><div>Eep-43 is consistent with dict:map/2, so I think the implementation should be corrected (as opposed to the eep)<br></div><div><br><br></div><div>Failing example (expected result is #{abc => 124})<br><br>
2> maps:map( fun(_K, V) -> V+1 end, #{abc => 123}).<br>** exception error: bad argument<br> in function maps:from_list/1<br> called as maps:from_list("|")<br> in call from maps:map/2 (maps.erl, line 195)<br>
</div><div><br><br></div><div>Cheers,<br></div>Dan.<br></div>