Used - Good
$6.67$6.67
Ships from: Seattlegoodwill Sold by: Seattlegoodwill
Sorry, there was a problem.
There was an error retrieving your Wish Lists. Please try again.Sorry, there was a problem.
List unavailable.
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
OCaml from the Very Beginning
Purchase options and add-ons
In OCaml from the Very Beginning John Whitington takes a no-prerequisites approach to teaching a modern general-purpose programming language. Each small, self-contained chapter introduces a new topic, building until the reader can write quite substantial programs. There are plenty of questions and, crucially, worked answers and hints.
OCaml from the Very Beginning will appeal both to new programmers, and experienced programmers eager to explore functional languages such as OCaml. It is suitable both for formal use within an undergraduate or graduate curriculum, and for the interested amateur.
Chapters:
- Getting Ready
- Starting Off
- Names and Functions
- Case by Case
- Making Lists
- Sorting Things
- Functions upon Functions upon Functions
- When Things Go Wrong
- Looking Things Up
- More with Functions
- New Kinds of Data
- Growing Trees
- In and Out
- Putting Things in Boxes
- The Other Numbers
- The OCaml Standard Library
- Building Bigger Programs
- Answers to Questions
- Hints for Questions
- Coping with Errors
- ISBN-100957671105
- ISBN-13978-0957671102
- Publication dateJune 7, 2013
- LanguageEnglish
- Dimensions7.5 x 0.46 x 9.25 inches
- Print length204 pages
Frequently bought together

Customers who viewed this item also viewed
Real World OCaml: Functional Programming for the MassesPaperbackFREE Shipping by AmazonGet it as soon as Thursday, May 21
More OCaml: Algorithms, Methods, and DiversionsPaperbackFREE Shipping by AmazonGet it as soon as Thursday, May 21
Customers also bought or read
- Real World OCaml: Functional Programming for the Masses
Paperback$46.90$46.90FREE delivery Thu, May 21 - OCaml Scientific Computing: Functional Programming in Data Science and Artificial Intelligence (Undergraduate Topics in Computer Science)
Paperback$37.11$37.11$3.99 delivery Jun 5 - 10 - Writing a C Compiler: Build a Real Programming Language from Scratch
Paperback$42.43$42.43FREE delivery Thu, May 21 - Fluent Python: Clear, Concise, and Effective Programming
Paperback$43.99$43.99FREE delivery Thu, May 21 - Code: The Hidden Language of Computer Hardware and Software
Paperback$31.58$31.58Delivery Thu, May 21 - The Rust Programming Language, 3rd Edition#1 Best SellerObject-Oriented Software Design
Paperback$39.71$39.71FREE delivery Thu, May 21 - Go Programming Language, The (Addison-Wesley Professional Computing Series)
Paperback$32.40$32.40Delivery Thu, May 21 - Tour of C++, A (C++ In-Depth Series)#1 Best SellerC++ Programming Language
Paperback$39.99$39.99FREE delivery Thu, May 21 - Learn You a Haskell for Great Good!: A Beginner's Guide
Paperback$35.83$35.83FREE delivery May 22 - 24 - Effective Haskell: Solving Real-World Problems with Strongly Typed Functional Programming
Paperback$57.95$57.95FREE delivery Thu, May 21 - Operating Systems: Three Easy Pieces#1 Best SellerComputer Operating Systems Theory
Paperback$28.27$28.27Delivery Thu, May 21 - Cracking the Coding Interview: 189 Programming Questions and Solutions#1 Best SellerData Structure and Algorithms
Paperback$24.10$24.10Delivery Jun 1 - 3 - Bare-Metal Embedded C Programming: Develop high-performance embedded systems with C for Arm microcontrollers#1 Best SellerComputer Hardware Embedded Systems
Paperback$33.59$33.59Delivery Thu, May 21 - Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming#1 Best SellerPython Programming
Paperback$27.53$27.53Delivery Thu, May 21 - AI Engineering: Building Applications with Foundation Models#1 Best SellerEnterprise Applications
Paperback$57.00$57.00FREE delivery Thu, May 21 - Elements of Programming Interviews in Python: The Insiders' Guide#1 Best SellerGenetic Algorithms
Paperback$38.23$38.23FREE delivery May 25 - 26 - A Philosophy of Software Design, 2nd Edition#1 Best SellerMicrosoft Programming
Paperback$22.95$22.95Delivery Thu, May 21
Editorial Reviews
Review
"OCaml from the Very Beginning is a book I'd definitively recommend to anyone interested in learning functional programming" - Adam Petersen (Author, "Patterns in C")
From the Author
About the Author
Product details
- Publisher : Coherent Press
- Publication date : June 7, 2013
- Language : English
- Print length : 204 pages
- ISBN-10 : 0957671105
- ISBN-13 : 978-0957671102
- Item Weight : 12.8 ounces
- Dimensions : 7.5 x 0.46 x 9.25 inches
- Best Sellers Rank: #1,013,888 in Books (See Top 100 in Books)
- #1,085 in Computer Programming Languages
- #2,451 in Programming Languages (Books)
- Customer Reviews:
About the author

John Whitington founded a company which builds software for electronic document processing. He studied, and taught, Computer Science at Queens’ College, Cambridge. His books include the textbooks PDF Explained (O'Reilly, 2012), OCaml from the Very Beginning (Coherent, 2013), and Haskell from the Very Beginning (Coherent, 2019) and the Popular Science book A Machine Made this Book: Ten Sketches of Computer Science (Coherent, 2016).
Related products with free delivery on eligible orders
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Generated from the text of customer reviewsSelect to learn more
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on August 9, 2013Format: KindleVerified PurchaseA very good and simple introduction to the basics of this amazing language. Short, easily digested chapters introduce each new concept. More advanced concepts are only briefly covered such as modules. Functors and OO are not covered. Having said that, this must be the easiest way of getting into the language or getting an introduction to the language. This book will prepare you to tackle the more comprehensive treatises such as "Real World OCaml: Functional programming for the masses" (also highly recommended) with ease.
- Reviewed in the United States on February 12, 2019Format: PaperbackVerified PurchaseThis is a kind of minimalistic introduction. Nothing wrong with that. But it is by no means the complete language. Just the first steps for a complete OCaml beginner with some programming experience. Overall recommended.
Pros:
- contains all the essential things to introduce the language
- has an extensive set of exercises with solutions at the end of the book
- each chapter is shortly reviewed at the end
- mostly clear explanations
Cons:
- some of the chapter titles should be better descriptive, it is not easy to find things
- you may have to do the exercises to really get the best out of this book. I hardly ever do that. I exercise by trying to use the language as soon as possible.
- it introduces only OCaml, it does not say much about functional programming and its virtues.
My copy of the book is filled with my own handwritten notes and comments, the chapter titles have been extended. Then it is more useful. I never read programming books cover to cover, I always pick things.
OCaml is one of the best functional languages I know. Of course, this is my personal opinion.
- Reviewed in the United States on July 6, 2013Format: PaperbackVerified PurchaseComplete but simple to read. Very usefull book for early beginners of this language. It is perhaps the missing book on OCaml. OCaml OOP not enough covered.
- Reviewed in the United States on January 14, 2016Format: PaperbackVerified PurchaseThis is truly an introductory treatment of the language; a tour of rudiments. If you've done *any* OCaml, this is *not* your book.
It has exercises to work, with answers in an appendix. You can code along with this text. It's nicely progressive. Stuff, for the most part; no fluff. Note that you are on your own, however, as far as getting OCaml installed on your machine.
If you already hack OCaml at all, move along. But if you're outside looking in and you want a well-written, hand-holding, easily read ice-breaker, then I would heartily recommend. Seriously, if you have any doubts about your capacity to get started with OCaml, this will lay your fears to rest -- assuming you get it installed OK (don't worry, it's easy too https://ocaml.org/docs/install.html).
- Reviewed in the United States on October 11, 2015Format: PaperbackVerified PurchaseThis is a very well written introduction to OCaml. Even if your principal programming language is C++ or Java or Python or something else, OCaml is still a good language to study for a few months because it really encourages you to think RECURSIVELY about your algorithms. Most of the big languages these days emphasize iteration, which is just fine but that can lead to very complex code that is difficult to read and maintain. In many cases recursion is preferable to iteration, and OCaml will really help you to think recursively because of its emphasis on recursively defined functions. I love it! The language is awesome. And this book is also really, really good. Highly recommended.
- Reviewed in the United States on March 27, 2014Format: PaperbackVerified PurchaseClear expositions of concepts even complicated ones, clear explanations, good exercises. I find it an excellent learning tool for a beginner.
- Reviewed in the United States on November 5, 2013Format: PaperbackVerified PurchaseExcellent book for the intended scope. This will get you from zero knowledge regarding OCaml to enough to piece together simple programs and go on from there. Probably a good introduction to the language for beginners as well, but as someone who's used a number of (primarily dynamically-typed) languages extensively, this was an excellent, quick, concise (perhaps my favorite attribute of the book), introduction to the language.
- Reviewed in the United States on June 6, 2017Format: PaperbackVerified PurchaseStarts off a little slow if you've worked with other programming languages, but serves as a pretty solid introduction to OCaml as well as programming in general. I did notice some minor "printing" errors in the Kindle version with some graphics missing the graphics that should be there and also some minor mathematical errors (i.e. 0! is returned as 0 in one of the answers when it should be 1), but the overall structure is excellent for beginners and easy to understand.
Top reviews from other countries
lewkorReviewed in Canada on March 15, 20183.0 out of 5 stars Three Stars
Format: PaperbackVerified PurchaseGood for starting out. I am a little disappointed 'cause I got farther by reading the online documentation.
-
SuluReviewed in France on July 14, 20134.0 out of 5 stars Excellente introduction à OCaml
Format: PaperbackVerified PurchaseUn livre idéal pour débuter en douceur avec OCaml. Agréable à lire et aborde l'apprentissage du langage par des exemples simples et pragmatiques. L'ouvrage est toutefois uniquement destiné aux débutants. Il donne en effet un simple aperçu du langage en faisant notamment l'impasse sur la partie programmation objet et les foncteurs.
Mr. T. BrowneReviewed in the United Kingdom on December 27, 20145.0 out of 5 stars Accessible tutorial style that is actually deeper than one initially thinks
Format: PaperbackVerified PurchaseComing from a Python background and wanting to learn OCaml, I have found this book to be very accessible as a tutorial - far more so than the Real World OCaml which, though excellent, is dive-into-the-deepend stuff quite fast, and also mixed in with too many Jane Street specifics too soon. Here is a great book to get you started on the learning curve of OCaml. As the other reviewers said, it's deceptively easy going, but actually these light chapters are quite dense if you go through some of the latter questions at the end of each.
What I like most about it is that it has that concise, incremental, orthogonally organised feeling that mirrors what I expect to get out of functional programming itself.
One could argue that it is a mite expensive for a 190 page book that uses a lot of whitespace (that's a positive for organization and readability, as an aside), but then OCaml is not really mainstream and one has to accept that this book will have a relatively low print run, and therefore I won't begrudge it a star on this point as I would much rather pay a few pounds more and have this book exist.
Yue JReviewed in the United Kingdom on October 25, 20135.0 out of 5 stars Easy to understand
Format: KindleVerified PurchaseWith a background in imperative language, I found it is quite hard to learn functional language. I've tried many OCaml tutorial, and found this is the best one for me. It was written for first year graduates without any programming experience, so it gives me a clear picture of the basis of functional programming.
Peter K.Reviewed in the United Kingdom on March 24, 20175.0 out of 5 stars Five Stars
Format: PaperbackVerified PurchaseGreat start!




















