Skip to content
jhawthornPublic

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HAMT

A persistent (immutable) Hash Array Mapped Trie for Ruby.

set and delete return a new HAMT that shares structure with the old one; nothing is ever mutated. Keys are compared the way Ruby's Hash compares them: by #hash, then #eql?.

a = HAMT[x: 1]
b = a.set(:y, 2)
a[:y]  # => nil   (a is untouched)
b[:y]  # => 2

Installation

gem install hamt

License

MIT

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages