not-too-smatr
not-too-smatr

Reputation: 599

Wrapping my head around OCaml

I'm only a novice programmer (I do it for fun) and I'm coming from the world of Python/C++/other procedural languages, and procedural style of problem solving. I fell in love with OCaml's simplicity after being boggled by its functional style for about a week. Since I'm not an engineer or mathematician, what are some helpful books or resources that will help transform my though process to think more functionally? Just standard exercises or are there books that will help me to think in those terms?

Upvotes: 7

Views: 758

Answers (3)

Norman Ramsey
Norman Ramsey

Reputation: 202505

It's not specific to OCaml, but if you want to learn to think in a functional way, a great place to start is with John Hughes's paper Why Functional Programming Matters.

Upvotes: 1

danieldk
danieldk

Reputation: 131

'Introduction to Objective Caml' by Jason Hickey provides a good introduction to OCaml, and is available online: http://files.metaprl.org/doc/ocaml-book.pdf

Upvotes: 7

Brian Postow
Brian Postow

Reputation: 12187

I'm a big fan of "The Little MLer" the ML version of "The Little Schemer" (nee "The Little Lisper") The entire book is in question answer format, leading you through the language.

The big disadvantage is that it doesn't really cover (IIRC) the 'O' part of OCaML... but it covers the ML part really well...

Upvotes: 7

Related Questions