# alidehkhodaei/kotlin-cheat-sheet architecture

> Architecture diagram of the GitHub repository alidehkhodaei/kotlin-cheat-sheet, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/alidehkhodaei/kotlin-cheat-sheet
- Repository: https://github.com/alidehkhodaei/kotlin-cheat-sheet

## Overview

This repository is a Kotlin syntax and feature cheat sheet, not an application with a runtime pipeline. Its principal user workflow is to consult a topic and use the corresponding concise example as a quick reference. The graph groups the independent examples by the README’s major topic areas; there are no supported calls between these topic directories. The source excerpts and index show standalone examples, so relationships between examples are omitted.

Main entry points: [`01_introduction`](https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/01_introduction) (Syntax and types), [`02_control_flow`](https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/02_control_flow) (Branches and loops), [`03_function`](https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/03_function) (Function features), [`04_collections`](https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/04_collections) (Collection examples)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_intro["Language basics"]
  node_intro_topics["Syntax and types"]
end

subgraph group_flow["Control flow"]
  node_flow_topics["Branches and loops"]
end

subgraph group_functions["Functions"]
  node_function_topics["Function features"]
end

subgraph group_collections["Collections"]
  node_collection_topics["Collection examples"]
end

subgraph group_classes["Classes and objects"]
  node_class_topics["Object-oriented features"]
end

subgraph group_other["Other topics"]
  node_other_topics["Additional concepts"]
end

node_reader(("Cheat sheet reader"))

node_reader -->|"consults"| node_intro_topics
node_reader -->|"consults"| node_flow_topics
node_reader -->|"consults"| node_function_topics
node_reader -->|"consults"| node_collection_topics
node_reader -->|"consults"| node_class_topics
node_reader -->|"consults"| node_other_topics

click node_intro_topics "https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/01_introduction"
click node_flow_topics "https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/02_control_flow"
click node_function_topics "https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/03_function"
click node_collection_topics "https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/04_collections"
click node_class_topics "https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/05_class_and_objects"
click node_other_topics "https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/06_other_topics"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_intro_topics toneBlue
class node_flow_topics toneAmber
class node_function_topics toneMint
class node_collection_topics toneRose
class node_class_topics,node_reader toneIndigo
class node_other_topics toneTeal
```

## Components

### Language basics

- [Syntax and types](https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/01_introduction): `01_introduction`

### Control flow

- [Branches and loops](https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/02_control_flow): `02_control_flow`

### Functions

- [Function features](https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/03_function): `03_function`

### Collections

- [Collection examples](https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/04_collections): `04_collections`

### Classes and objects

- [Object-oriented features](https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/05_class_and_objects): `05_class_and_objects`

### Other topics

- [Additional concepts](https://github.com/alidehkhodaei/kotlin-cheat-sheet/tree/main/06_other_topics): `06_other_topics`

### Other components

- **Cheat sheet reader**

## Connections

- Cheat sheet reader → Syntax and types: consults
- Cheat sheet reader → Branches and loops: consults
- Cheat sheet reader → Function features: consults
- Cheat sheet reader → Collection examples: consults
- Cheat sheet reader → Object-oriented features: consults
- Cheat sheet reader → Additional concepts: consults
