We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UniqueMap.take()
export class HashMap<Key, T> { public take(key: Key, generator: () => T): T { const it = this.find(key); return it.equals(this.end()) ? this.emplace(key, generator()).first.second : it.second; } }
The text was updated successfully, but these errors were encountered:
a24f3e5
Merge pull request #98 from samchon/v2.5
cc7f5cc
Close #97
UniqueMap.get_or_set()
Complement #97
c3934b5
samchon
No branches or pull requests
The text was updated successfully, but these errors were encountered: