Skip to content

docs(tutorial): Clarity - Complex Data Maps & Tuples#1779

Closed
jadonamite wants to merge 1 commit intostacks-network:masterfrom
jadonamite:patch-14
Closed

docs(tutorial): Clarity - Complex Data Maps & Tuples#1779
jadonamite wants to merge 1 commit intostacks-network:masterfrom
jadonamite:patch-14

Conversation

@jadonamite
Copy link

Description

This PR adds Module 13: Data Structures by @jadonamite. It covers the usage of composite keys (Tuples) and structured values in Clarity maps.

Content Overview

  • Composite Keys: Defining maps with { owner: principal, id: uint } keys.
  • CRUD Operations: How to Set, Get, and default-handle complex data.
  • The Merge Pattern: Using (merge ...) to perform partial updates on stored structs.

Checklist

  • Syntax validated against Clarinet.
  • merge function explained for partial updates.
  • Formatting follows the repository's style guide.

@jadonamite jadonamite requested a review from a team as a code owner January 21, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants