Giter Site home page Giter Site logo

seipy / the-little-ocamler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from steinuil/the-little-ocamler

0.0 1.0 0.0 25 KB

The examples from "The Little MLer" in OCaml

License: The Unlicense

OCaml 99.52% Standard ML 0.48%
ocaml functional-programming learn

the-little-ocamler's Introduction

The Little OCamler

Most of the code examples from The Little MLer, a wonderful book from the "Little Xer" series, in OCaml and ReasonML.

I thought other people who might have had the same idea as me might find it useful to have something to cross-reference, in case they get stuck because of some syntax idiosyncrasy in either SML or OCaml/ReasonML.

Do not just copy-paste this code into the REPL. Type it yourself, and only consult this if you have trouble with the syntax.

This is just a translation of the SML examples to OCaml, to the best of my efforts. Just don't expect idiomatic code or anything.

But why?

While I am sure SML is a great language, when I started reading The Little MLer I only had the OCaml compiler on my computer.

Because I am a lazy person, I decided to take this as an opportunity to learn OCaml too.

Now with ReasonML examples

Thanks to @hzamir, a translation to ReasonML syntax has been added under the reasonml/ directory.

the-little-ocamler's People

Contributors

hzamir avatar steinuil avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.