Ctrl / ⌘ + drag to orbit · Ctrl / ⌘ + scroll to zoomDrag to orbit · Pinch to zoom
The 3D world is unavailable in this browser. Your lesson, code, and results are still available.
LESSON 6.4
Each enum variant can carry its own data. A match extracts that data, as in Shape.Rect(w, h) => w * h .
enum
match
Shape.Rect(w, h) => w * h
Goal Complete area so it prints 10 12 0 .
area
10 12 0