Skip to Content
Mastering Functional Programming
book

Mastering Functional Programming

by Anatolii Kmetiuk
August 2018
Intermediate to advanced
380 pages
10h 2m
English
Packt Publishing
Content preview from Mastering Functional Programming

Visited links

The caveat that has the most impact here is the partiality of tracking of the actors that this actor has already visited. If you remember, in the sequential example, we are using the foldLeft function to accumulate the results of every URL processing, and at all times we have a complete, up-to-date list of all the URLs collected by the entire application. This means the recursive crawling calls always have a full picture of what the application has collected so far.

In the diagram, we see a sequential example of processing with foldLeft:

All the nodes that were already processed are highlighted in green, and the current URL is ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Functional Programming

Learning Functional Programming

Jack Widman

Publisher Resources

ISBN: 9781788620796Supplemental Content