0.3.0
Features
-
52d97b1 pattern matching (#92)
Here's a sneak peak:
const result = Alge.match(shape) .Circle({ radius: 13 }, () => `Got an unlucky circle!`) .Circle((circle) => `Got a circle of radius ${circle.radius}!`) .Square({ size: 13 }, () => `Got an unlucky square!`) .Square((square) => `Got a square of size ${square.size}!`) .done()
Read more details and examples In the docs.