Programming Challenges
Let's solve coding challenges to practice dataflow programming with functions.
We'll cover the following...
Challenge 1: Area of the largest circle
The following algebraic datatype represents a geometric shape. For our purposes here, we’ll only consider circles and rectangles.
type shape = Circle of float
| Rectangle of float * float
The ...