Re: idx, Rosettacode Word_count example

2018-06-15 Thread Alexander Burger
Hi Jon, > (de aB (W) (if (idx 'B W T) (inc (car @)) (set W 1))) > (de aC (W) (if (idx 'C W T) (inc (car @)) (set W 1))) > > I then did a couple of (aB 'foo) and then (aC 'foo), and noticed that the use > of aC interferred with the values registered by aB. I think one would need > separate name sp

idx, Rosettacode Word_count example

2018-06-15 Thread Jon Kleiser
Hi, I have used the idx function a few times and enjoyed it, but it had never occurred to me, until I took a closer look at the Rosettacode Word_count example, that I could also store values at the symbols in an idx tree. Wow! ;-) I’m quite impressed by the speed of that PicoLisp Word_count exa