cangjie-std-hashmap

Document the Cangjie standard library HashMap class methods and constraints.

1|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/SunriseSummer/CangjieDocValidator --skill cangjie-std-hashmap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cangjie-std-hashmap
Source: https://github.com/SunriseSummer/CangjieDocValidator/tree/main/.github/skills/hashmap
Command: npx skills add https://github.com/SunriseSummer/CangjieDocValidator --skill cangjie-std-hashmap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide to using the HashMap data structure in Cangjie, enabling efficient key-value data management.

Core Features & Use Cases

  • API Reference: Detailed explanations of all HashMap methods for construction, addition, update, retrieval, deletion, and iteration.
  • Usage Examples: Practical code snippets demonstrating common scenarios like configuration storage, frequency counting, and data merging.
  • Use Case: Quickly look up the correct syntax and behavior for adding elements to a HashMap, checking for key existence, or iterating over its contents.

Quick Start

Import the HashMap class and create a new empty HashMap for String keys and Int64 values.

Frequently Asked Questions about cangjie-std-hashmap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a HashMap in Cangjie for key-value data storage?

To create a HashMap in Cangjie, import the class and instantiate an empty map specifying key and value types, such as String for keys and Int64 for values, enabling efficient hash-based data storage and rapid retrieval.

What key types are required for a Cangjie HashMap?

Cangjie HashMap keys must implement the Hashable and Equatable interfaces to ensure proper hash-based data storage and accurate key-value querying, allowing the collection to correctly compute and compare key hashes.

How do I add, update, and delete elements in a Cangjie HashMap?

You manage Cangjie HashMap elements by calling specific methods for adding, updating, querying, and deleting key-value pairs, with the API reference providing detailed explanations and practical code snippets for these collection operations.

How can I iterate over key-value pairs in a Cangjie HashMap?

You iterate over a Cangjie HashMap by using its built-in iteration methods to traverse all stored key-value pairs, commonly applied in scenarios like frequency counting, configuration storage, and data merging.

Is the Cangjie HashMap thread-safe for concurrent access?

The Cangjie HashMap has specific thread-safety considerations users must account for during concurrent access, requiring consultation of API reference limitations to determine if additional synchronization mechanisms are needed.