Steps
Steps to learning Reason OCaml

Modules

What are Modules? Modules group related methods, exceptions and types into a package. In addition, Reason provides module interfaces that…
Read more…
Myer Nore

Maps

What are Maps? In many applications it becomes necessary to look up a Record , Object or other data structure by a unique identifier…
Read more…
Myer Nore

Objects

How is an Object different from a Record? Here is an example that declares a Record and compares it with the equivalent Object definition…
Read more…
Myer Nore

Variants

Variants are case constants for switch statements. A Variant is a set of mutually exclusive cases to choose from. The expression creates a…
Read more…
Myer Nore

Records

Intro to Record Types A Record is a declaration of a new datastructure with certain fixed attributes. To make a new Record type, use the…
Read more…
Myer Nore

Reason Lists

Intro to Lists A list in Reason OCaml is a linked list . A List is divided into a single-element and the rest of the list, called the…
Read more…
Myer Nore

Pattern Matching Intro

Pattern Matching / Switch Consider the factorial function from the last post : While an if/else or ternary expression works just fine for…
Read more…
Myer Nore

Names and Functions

When getting started writing functions, it is very helpful to use rtop locally, which is Reason's R ead E val P rint L oop (REPL…
Read more…
Myer Nore

Getting Started

About Gradus Reason Welcome to Gradus Reason . This site is a place to learn the Reason OCaml language. The name Gradus is a reference…
Read more…
Myer Nore

Floats vs Ints

Integers and Floating Points Recall the cube function: When we declared the function, Reason decided that it would take an and return…
Read more…
Myer Nore