Skip to content

Commit

Permalink
pub
Browse files Browse the repository at this point in the history
  • Loading branch information
olehmisar committed Oct 30, 2024
1 parent 7ef08a9 commit 5681c2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.nr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct MutSparseArrayBase<let N: u32, T, ComparisonFuncs> {

struct U32RangeTraits {}

struct MutSparseArray<let N: u32, T> {
pub struct MutSparseArray<let N: u32, T> {
inner: MutSparseArrayBase<N, T, U32RangeTraits>,
}
/**
Expand All @@ -46,7 +46,7 @@ struct MutSparseArray<let N: u32, T> {
* 1. keys[i] maps to values[i+1]
* 2. values[0] is an empty object. when calling `get(idx)`, if `idx` is not in `keys` we will return `values[0]`
**/
struct SparseArray<let N: u32, T> {
pub struct SparseArray<let N: u32, T> {
keys: [Field; N + 2],
values: [T; N + 3],
maximum: Field, // can be up to 2^32
Expand Down

0 comments on commit 5681c2d

Please sign in to comment.