Haxe Code Cookbook
Haxe programming cookbookFunctional Programming

Functional Programming

Overview of Haxe functional programming snippets and tutorials.

  • Jan 03, 2017 Functional Programming /

     enum pattern-matching functional-programming

    As already established Haxe enums are a form of algebraic data types. In fact, they may even serve as so called generalized algebraic data types - GADTs for short. While for an ordinary enum every constructor yields the same type, with an GADT each constructor may yield a different type.

  • Feb 12, 2018 Functional Programming /

     functional programming adt enum parsing

    ML-like languages are great for creating interpreters or compilers, by virtue of Algebraic Data Types. Haxe's enum allow for writing similarly elegant code.