Ahh, for some reason, I had the impression that it can be used as mutable
object. Just reread the "transient data structure" page, realize that I've
been knowing it wrong all this time.
Thanks
On Tuesday, November 10, 2015 at 1:11:56 PM UTC-6, Alex Miller wrote:
>
> That is, you should use the
That is, you should use the exact same modification pattern that you use
with persistent collections.
On Tuesday, November 10, 2015 at 1:05:38 PM UTC-6, Laurens Van Houtven
wrote:
>
> Hi Ritchie
>
>
> You appear to be using the transient as a mutable object, which is not
> correct in the genera
Hi Ritchie
You appear to be using the transient as a mutable object, which is not correct
in the general case. You should only use the return value of assoc!/dissoc!/et
cetera.
lvh
> On Nov 10, 2015, at 1:03 PM, Ritchie Cai wrote:
>
> btw, I'm using Java 1.8.0_60-b27, Clojure 1.7.0
>
> On
btw, I'm using Java 1.8.0_60-b27, Clojure 1.7.0
On Tuesday, November 10, 2015 at 12:59:54 PM UTC-6, Ritchie Cai wrote:
>
> Hi,
>
> I'm wondering if anyone can help me understand why transient map in my
> code stops adding entries.
> Here is my implementation of huffman code generation given a st
Hi,
I'm wondering if anyone can help me understand why transient map in my code
stops adding entries.
Here is my implementation of huffman code generation given a string:
https://gist.github.com/malloc82/efeec1053b9af195e351#file-huffman-clj-L53-L55
Line 53-55 is where it adds a huffman code