Saturday, February 24, 2018

OCaml: Algebraic Data Types

In previous post, we showed several simple usages of pattern matching. Pattern matching is actually even more useful with algebraic data types. In functional programming, an algebraic data type is a kind of composite type, i.e. a type formed by combining other types.

No comments:

How to build a Hugo website in AWS Lambda and deploy it to S3

This tutorial explains how to run Hugo in AWS Lambda and deploy a static website to Amazon S3. Running Hugo in AWS Lambda can be useful if...