Introducing Elixir by Simon St. Laurent & J. David Eisenberg
Author:Simon St. Laurent & J. David Eisenberg [Unknown]
Language: eng
Format: epub
ISBN: 9781449369996
Publisher: O’Reilly Media, Inc.
Published: 2014-10-06T20:00:00+00:00
Note
The result of the List.foldl is the same as 32/(16/(8/(4/(2/(1/1))))), while the result of the List.foldr is the same as 1/(2/(4/(8/(16/(32/1))))). The parentheses in those perform the same restructuring as the fold, and the concluding 1 in each is where the initial accumulator value fits in.
Folding is an incredibly powerful operation. This simple if slightly weird example just used a single value, a number, as an accumulator. If you use a tuple as the accumulator, you can store all kinds of information about a list as it passes by and even perform multiple operations. You probably won’t want to try to define the functions you use for that as one-liners, but the possibilities are endless.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(14625)
The Mikado Method by Ola Ellnestam Daniel Brolund(11887)
Hello! Python by Anthony Briggs(11801)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(11248)
Dependency Injection in .NET by Mark Seemann(11007)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10523)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(9841)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(9430)
Grails in Action by Glen Smith Peter Ledbrook(9174)
Hit Refresh by Satya Nadella(9038)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(8815)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(8605)
The Kubernetes Operator Framework Book by Michael Dame(8471)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(8312)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8292)
Robo-Advisor with Python by Aki Ranin(8245)
Practical Computer Architecture with Python and ARM by Alan Clements(8218)
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(8189)
Building Low Latency Applications with C++ by Sourav Ghosh(8094)