The first release is an implementation of a treap data structure in
Go. It is very similar in usage to Petar's GoLLRB package. Please
check it out:
http://www.stathat.com/src/treap
Most of StatHat is written in Go, so we will release several more
packages of interest to the go-nuts list in the near future.
Thanks!
Patrick
--
Founder | www.stathat.com | www.twitter.com/stat_hat
We thought the idea behind treaps was an elegant solution to our
problem, so we implemented it. We liked the interface that GoLLRB
provided, so we mimicked it in our implementation.
One thing we added to the treap package is to allow you to iterate
using an overlap function, so you can get all the keys in [3,9), for
example. We use this a lot, often with a struct as the key.
Patrick
> We're open sourcing some of the code that powers StatHat.
>
> The first release is an implementation of a treap data structure in
> Go. It is very similar in usage to Petar's GoLLRB package. Please
> check it out:
>
> http://www.stathat.com/src/treap
>
> Most of StatHat is written in Go, so we will release several more
> packages of interest to the go-nuts list in the near future.
Cool! But if StatHat is in Go, why isn't Go supported? It's not mentioned on the landing page, at least.
-rob
We'll have the Go StatHat package up very soon and the landing page
will be updated...
Patrick