Skip to content

Collections

Coming Soon

This tutorial is under development for v0.1.0.

Overview

Desi has three main collection types:

# Lists - ordered, indexed
let numbers = [1, 2, 3, 4, 5]

# Dictionaries - key-value pairs
let ages = {"Alice": 30, "Bob": 25}

# Sets - unique values, written with #{}
let unique = #{1, 2, 3}

Topics Covered

  • Lists and list operations
  • Dictionaries
  • Sets
  • Iteration
  • Comprehensions
  • Built-in functions (map, filter, reduce)