Skip to content

Commit faad9ff

Browse files
authored
Merge pull request #443 from chenharryhua/main
expose size of the internal Map #441
2 parents f443c2f + 5df4958 commit faad9ff

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

core/src/main/scala/org/typelevel/vault/Vault.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ final class Vault private (private val m: Map[Unique.Token, Locker]) {
8080
* Merge Two Vaults. `that` is prioritized.
8181
*/
8282
def ++(that: Vault): Vault = new Vault(this.m ++ that.m)
83+
84+
/**
85+
* The size of the vault
86+
*/
87+
def size: Int = m.size
8388
}
8489
object Vault {
8590

0 commit comments

Comments
 (0)