The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

abelb (2) [Avatar] Offline
#1
Small typo, but it can be really puzzling if you are just trying to understand the syntax. Listing 3.18 starts on p 77 and continues on p 78:

    | hd::tail ->
        let resultRest = aggregateList op init tail
        op resultRest head

This should be:

    | head::tail ->
        let resultRest = aggregateList op init tail
        op resultRest head