SlideShare a Scribd company logo
3 FP Concepts




                Higher Order Functions, Lambda and Currying



@diego_pacheco  about.me/diegopacheco
3 FP Concepts
  Lambda

  Higher Order Functions

  Currying
Lambda
Lambda

 Anonymous Functions
 We need just one time
 Work with Higher Order Functions
 Haskell: 
 Scala: () =>
Lambda
Higher Order Functions
Higher Order Functions

 Receive Function as parameters
 Return a Function as output
 FP Ground, composition and laziness

                                     map
                                   reduce
                                    filter
                                     fold
                                  flat map
                                    drop
                                    exist
                                     take
                                      …
Higher Order Functions
Currying
Currying

 Transform: Chained Functions: Single arg
 Partial Application / Laziness / Composition
 Lambda calculus  Parallelism
 Some languages have nice syntax sugar
Let’s put some sugar on it…
Currying
Currying
Calculator Homework
Calculator Homework
FP Concepts
FP Concepts
Calculator Homework
Haskell Experience...
Haskell Experience...
FP Concepts
FP Concepts
Fizz Buzz Homework
Fizz Buzz Homework
FP Concepts
Fizz Buzz Homework
FP Concepts
https://github.com/diegopacheco/functional-society
3 FP Concepts

                   Thank You!
                    Obrigado!
                Higher Order Functions, Lambda and Currying



@diego_pacheco  about.me/diegopacheco

More Related Content

PDF
Ruby on Rails
PDF
Interaction, Complexity, Coordination
PPTX
Hack java8:java 9
ODP
Eclipse Day India 2015 - Java 9
PPT
2016 java9-how-make-qus
PPSX
Java 9 and the impact on Maven Projects (Devoxx 2016)
PDF
Naming Things Book : Simple Book Review!
PDF
Continuous Discovery Habits Book Review.pdf
Ruby on Rails
Interaction, Complexity, Coordination
Hack java8:java 9
Eclipse Day India 2015 - Java 9
2016 java9-how-make-qus
Java 9 and the impact on Maven Projects (Devoxx 2016)
Naming Things Book : Simple Book Review!
Continuous Discovery Habits Book Review.pdf

More from Diego Pacheco (20)

PDF
Thoughts about Shape Up
PDF
Holacracy
PDF
AWS IAM
PDF
PDF
Encryption Deep Dive
PDF
Sec 101
PDF
Reflections on SCM
PDF
Management: Doing the non-obvious! III
PDF
Design is not Subjective
PDF
Architecture & Engineering : Doing the non-obvious!
PDF
Management doing the non-obvious II
PDF
Testing in production
PDF
Nine lies about work
PDF
Management: doing the nonobvious!
PDF
AI and the Future
PDF
Dealing with dependencies
PDF
Dealing with dependencies in tests
PDF
Kanban 2020
PDF
Lean 2020
PDF
Hardening
Thoughts about Shape Up
Holacracy
AWS IAM
Encryption Deep Dive
Sec 101
Reflections on SCM
Management: Doing the non-obvious! III
Design is not Subjective
Architecture & Engineering : Doing the non-obvious!
Management doing the non-obvious II
Testing in production
Nine lies about work
Management: doing the nonobvious!
AI and the Future
Dealing with dependencies
Dealing with dependencies in tests
Kanban 2020
Lean 2020
Hardening
Ad

Recently uploaded (20)

PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
Unlock new opportunities with location data.pdf
PDF
Five Habits of High-Impact Board Members
PDF
STKI Israel Market Study 2025 version august
PDF
August Patch Tuesday
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
A novel scalable deep ensemble learning framework for big data classification...
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
Hindi spoken digit analysis for native and non-native speakers
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
Getting Started with Data Integration: FME Form 101
PPTX
Chapter 5: Probability Theory and Statistics
Group 1 Presentation -Planning and Decision Making .pptx
O2C Customer Invoices to Receipt V15A.pptx
Unlock new opportunities with location data.pdf
Five Habits of High-Impact Board Members
STKI Israel Market Study 2025 version august
August Patch Tuesday
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
CloudStack 4.21: First Look Webinar slides
Taming the Chaos: How to Turn Unstructured Data into Decisions
1 - Historical Antecedents, Social Consideration.pdf
Zenith AI: Advanced Artificial Intelligence
A novel scalable deep ensemble learning framework for big data classification...
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
Hindi spoken digit analysis for native and non-native speakers
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Enhancing emotion recognition model for a student engagement use case through...
sustainability-14-14877-v2.pddhzftheheeeee
DP Operators-handbook-extract for the Mautical Institute
Getting Started with Data Integration: FME Form 101
Chapter 5: Probability Theory and Statistics
Ad

FP Concepts