cangjie-std-array

Community

Master Cangjie's Array: Full API Guide

AuthorSunriseSummer
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a comprehensive guide to the Array<T> type in Cangjie, covering its construction, manipulation, and advanced operations, ensuring developers can efficiently use arrays in their Cangjie programs.

Core Features & Use Cases

  • Array Construction: Learn various methods to create arrays, from literals to size-initialized arrays.
  • Element Access & Modification: Understand how to get, set, and swap elements safely and efficiently.
  • Slicing, Concatenation, and Repetition: Master operations for manipulating array segments and combining arrays.
  • Searching, Sorting, and Mapping: Discover how to find elements, sort arrays (using std.sort), and transform elements.
  • Use Case: Quickly reference the exact syntax for creating a new array of a specific size, filling it with default values, and then mapping a transformation function to each element.

Quick Start

Show me how to create an array of integers from 0 to 9 using the Array<Int64>(size, {i => i}) constructor.

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-std-array
Download link: https://github.com/SunriseSummer/CangjieDocValidator/archive/main.zip#cangjie-std-array

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.