Save on pre-loved TVs
Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows.
Buy new:
$49.99
FREE delivery Saturday, November 8
Ships from: Amazon.com
Sold by: Amazon.com
Kindle app logo image

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.

QR code to download the Kindle App

Follow the author

Something went wrong. Please try your request again later.

More OCaml: Algorithms, Methods, and Diversions


{"desktop_buybox_group_1":[{"displayPrice":"$49.99","priceAmount":49.99,"currencySymbol":"$","integerValue":"49","decimalSeparator":".","fractionalValue":"99","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"nJqnF5MtdgjWTear8dCbAZ8WjFoH7HvkV5h1MQrnR7Sx2OIRT6ILMzjZYjTzjIlBDPTWTpnjLhWicGL3ysK3tq9P9%2FR9slagphyC6UDQn9YRoY6g%2F9vPP7sbCyM16HK8Z0OeJjph8W3yUcyUM55WAg%3D%3D","locale":"en-US","buyingOptionType":"NEW","aapiBuyingOptionIndex":0}, {"displayPrice":"$47.49","priceAmount":47.49,"currencySymbol":"$","integerValue":"47","decimalSeparator":".","fractionalValue":"49","symbolPosition":"left","hasSpace":false,"showFractionalPartIfEmpty":true,"offerListingId":"nJqnF5MtdgjWTear8dCbAZ8WjFoH7Hvk%2BcmamU5vg3OE%2BcgsmqPPdzY5PIaCWPWSiB%2FSnwOXejXAymVnvcrCl4ewOSSIvmt6msCy7roys59cMgrMoi5CfkvOquuzUMPmrmYyvCEXCfgCKvmiHyea4k3pj56XC3OSIKM03996S5hqYht%2FQenaMPO%2BsCnC8zG0","locale":"en-US","buyingOptionType":"USED","aapiBuyingOptionIndex":1}]}

Purchase options and add-ons

In More OCaml John Whitington takes a meandering tour of functional programming with OCaml, introducing various language features and describing some classic algorithms. The book ends with a large worked example dealing with the production of PDF files. There are questions for each chapter together with worked answers and hints.

More OCaml will appeal both to existing OCaml programmers who wish to brush up their skills, and to experienced programmers eager to explore functional languages such as OCaml. It is hoped that each reader will find something new, or see an old thing in a new light. For the more casual reader, or those who are used to a different functional language, a summary of basic OCaml is provided at the front of the book.

Chapters:

  • Summary of Basic OCaml
  • Our Working Environment
  • Unravelling "Fold"
  • Being Lazy
  • Named Tuples with Records
  • Generalized Input/Output
  • Streams of Bits
  • Compressing Data
  • Labelled and Optional Arguments
  • Formatted Printing
  • Searching for Things
  • Finding Permutations
  • Making Sets
  • Playing Games
  • Representing Documents
  • Writing Documents
  • Pretty Pictures
  • Adding Text
  • Answers to Questions
  • Hints for Questions
  • Coping with Errors

Frequently bought together

This item: More OCaml: Algorithms, Methods, and Diversions
$49.99
Get it as soon as Saturday, Nov 8
In Stock
Ships from and sold by Amazon.com.
+
$49.99
Get it as soon as Saturday, Nov 8
In Stock
Ships from and sold by Amazon.com.
Total price: $00
To see our price, add these items to your cart.
Details
Added to Cart
Choose items to buy together.

Customers also bought or read

Loading...

Editorial Reviews

Review

I found the exposition very pragmatic (with a mix of imperative and functional techniques) and effective. - Emmanuel Delaborde

From the Author

This book is a sequel to OCaml from the Very Beginning, my beginner's OCaml book. However, it is self-contained, requiring only basic OCaml knowledge. In the book, I explore some larger, more serious OCaml programs, and some of OCaml's language features, such as labelled and optional arguments, lazy evaluation, and formatted printing. I hope the book enlarges your OCaml knowledge, and improves your own programs.

Product details

About the author

Follow authors to get new release updates, plus improved recommendations.
John Whitington
Brief content visible, double tap to read full content.
Full content visible, double tap to read brief content.

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).

Customer reviews

4.6 out of 5 stars
22 global ratings

Top reviews from the United States

  • Reviewed in the United States on February 12, 2019
    Format: PaperbackVerified Purchase
    Please read the first volume of this introduction by the same author first (OCaml from the very beginning). Refer to my review to the first volume: everything I said there applies to this book as well, except:
    - the chapters are no longer reviewed at the end
    - this book contains two very useful practical examples, not easily found elsewhere:
    -- Compression algorithms
    -- Generating PDF files
    4 people found this helpful
    Report
  • Reviewed in the United States on May 23, 2015
    Format: Paperback
    In this book John Whitington continues the gentle introduction to OCaml and functional programming he started in « OCaml from the very Beginning ». The style is left intact: a clear prose structured in bite-size chapters complemented with questions and worked answers. A format especially well suited for self-study.

    Building on the ground work of « OCaml from the very Beginning », the book introduces a few new language level concepts: laziness, records, labelled arguments and starts to introduce some elements of the module system. Regarding the latter there is no treatment of functors yet, which only raises the hopes that the book series is not over.

    As its subtitle hints, the book is not only about OCaml but also about programming techniques. Using engaging examples – but without falling in the trap of only teaching how to deal with the latest technological fad – the book also unknowingly instructs you how to design data structures and programs using a non-dogmatic mix of imperative and functional programming techniques. Writing codecs, compressing data, searching data, implementing and comparing a set data structure using different approaches, analyzing the rules of a game through its game trees are a few examples of the tasks that are addressed. The book ends by showing how to generate and typeset PDFs from scratch, a topic the www can be surprisingly quiet about when one considers the widespread usage of the file format.
    10 people found this helpful
    Report
  • Reviewed in the United States on September 22, 2014
    Format: Paperback
    I really enjoyed this book. While 'OCaml from the Very Beginning' was intended for readers new to programming, 'More OCaml' is suitable for programmers willing to dive into OCaml and Functional Programming.

    The book starts with a handy summary of OCaml, enough to get started right away. The first half of the book walks the reader through a series of chapters introducing language features (lists, user-defined datatypes, records, labels, modules) by way of applied examples and exercises. The second half of the book covers an extended example of PDF generation, that gives a glimpse inside the PDF format. Throughout the book, useful part of the standard library are covered.

    I found the exposition very pragmatic (with a mix of imperative and functional techniques) and effective. The programs used as example and exercises are fun and challenging. Extending and running programs that exercise new knowledge is very enlightening and empowering.
    All exercises come with hints and answers, and all the code is available online, there is even a section, at the end, documenting common error messages.

    I heartily recommend this book to anybody willing to start learning OCaml, it is the best on-ramp to more advanced material.
    5 people found this helpful
    Report
  • Reviewed in the United States on August 29, 2014
    Format: Paperback
    This book (MO) is written in the same no nonsense, straight forward way as it predecessor, OCaml from the Very Beginning (another great book). I like the fact that it provides examples of how to solve real problems, as opposed to contrived code snippets.

    By the end of the book you should be able to understand how to write an OCaml program to generate PDF files, a non trivial problem whose solution exercises a pretty wide gamut of OCaml features and idioms.

    After finishing this book you will probably find yourself asking a lot of questions about the language... that's because "MO" (as OFTVB before it) is an introductory book that does not go in depth about every detail of the language and its ecosystem. Depending on were you are in your journey of learning OCaml that could actually be a good thing.
    10 people found this helpful
    Report

Top reviews from other countries

  • MC
    5.0 out of 5 stars Very good book
    Reviewed in Germany on October 8, 2014
    Format: PaperbackVerified Purchase
    I really like this book. Written in the same style as "OCaml from the very beginning", it shows pragmatic use of the language - showing that one does not need the very advanced features, nor extensive knowledge of type systems to get things done. The concrete programming chapters lead to the generation of PDF files in OCaml.
    I also liked the fact that the OCaml distribution is enough to get started, no need to download and install other software.

    Hopefully there will be more books from the same author !