Skip to content

Examples

Explore Endo through practical examples, organized by complexity.

Beginner

Get started with the basics of Endo's syntax and features.

Example Description
Basics Variables, strings, basic operations
FizzBuzz Classic programming exercise in Endo
Temperature Temperature conversion functions
Floats Working with floating-point numbers

Intermediate

Explore Endo's functional programming features.

Example Description
Functions Function definitions, closures, composition
Pattern Matching Match expressions and destructuring
Tuples Tuple creation and destructuring
Records Record types and field access
Union Fields Named union fields with dot-access
Properties Computed properties and dot-access
Type Annotations Optional type annotations

Advanced

Master advanced patterns and real-world applications.

Example Description
Recursion Recursive functions and tail-call optimization
Options & Results Safe value handling with Option and Result types
Validation Input validation with Result types
Calculator Expression parser and evaluator
Fetch HTTP requests and JSON processing