Skip to content

Commit

Permalink
add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Guest0x0 authored and bobzhang committed Mar 25, 2024
1 parent 540a5ed commit 9fddece
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions immutable_hashmap/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
This package provides an immutable hash map data structure.

## Basic usage
```
test {
let h =
@immutable_hashmap.empty()
.add(1, 1)
.add(2, 2)
let h2 = h.add(3, 3)
@assert.assert_eq(h.find(3), None)
@assert.assert_eq(h2.find(3), Some(3))
}
```

## TODO
More API, in particular removal.

0 comments on commit 9fddece

Please sign in to comment.