cangjie-generic

Community

Master Cangjie's generic programming features.

AuthorSunriseSummer
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you understand and utilize Cangjie's powerful generic programming features, enabling you to write more flexible, reusable, and type-safe code.

Core Features & Use Cases

  • Parameterized Types: Learn how to define functions, classes, interfaces, structs, and enums that operate on types specified at usage time.
  • Generic Constraints: Understand how to enforce requirements on type parameters using the where clause, ensuring type safety.
  • Type Variance: Explore how generic types behave with respect to subtyping, including invariance, covariance, and contravariance.
  • Use Case: Implement a generic List<T> that can hold any type of element, or a generic Repository<T> that can manage data for any entity type T.

Quick Start

Explain the concept of a generic function in Cangjie with an example.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: cangjie-generic
Download link: https://github.com/SunriseSummer/CangjieDocValidator/archive/main.zip#cangjie-generic

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.