Data Types: Introduction

This section of the tutorial will be focused on data types. Coconut's `data` keyword allows you to create immutable, algebraic data types without creating separate classes for each of them. This functionality condenses the definition of different classes into the size of a simple function call, and allows you to flexibly incorporate different methods.


Next
Previous