Skip to content

Chapter 4: Type basics

4.1 Introduction

Why types are useful

4.2 Using the interactive :type command

Characters and strings

4.3 Functional types

Example: not

Example: chr and ord

Functions with more than one argument

Real world example: openWindow

4.4 Type signatures in code

Type inference

Types and readability

Types prevent errors

4.5 Notes