O(1) conversion from mutable.Map to immutable.Map?

Posted by IttayD on Stack Overflow See other posts from Stack Overflow or by IttayD
Published on 2010-03-17T08:29:13Z Indexed on 2010/03/17 8:31 UTC
Read the original article Hit count: 176

Filed under:
|

Is there a way to convert (wrap) a mutable Map to immutable in O(1) time (that is, not by copying the values, but similar to what is done in JavaConversions)

© Stack Overflow or respective owner

Related posts about scala

Related posts about collections