SlideShare a Scribd company logo
Functional
Programming with
Python
Marcelo Cure
Functional Programming
Expressions over statements (instead of using a whole for, use
map/filter/reduce)
No side effect
Immutability
Simpler code
Expressiveness
Functional is stateless
Statefull Stateless
Don't iterate over lists
Use map/filter/reduce
A even better way
Another example with map
Another example with reduce
Lambdas
High Order Functions
Functions that manipulate functions
Send functions to functions allowing different behaviour
Functional programming with python
Function Composition
List Comprehentions
Comes from mathematics
{ x2 | x ∈ ℕ }
x * 2 given x is contained on the natural numbers
Immutability
● The same happens to other types: string, float, tuples, etc
● Lists and Dictionaries are mutable
● Objects are also mutable
Thanks

More Related Content

DOCX
Relational Algebra Operations
PPTX
Query Optimization
ODP
Functional Programming for the Rest of Us in Javascript
PDF
Query trees
PPT
PPT
14. Query Optimization in DBMS
PPTX
Power shell basics day 5
PPTX
Hashing
Relational Algebra Operations
Query Optimization
Functional Programming for the Rest of Us in Javascript
Query trees
14. Query Optimization in DBMS
Power shell basics day 5
Hashing

What's hot (6)

PPTX
Join operation
PPTX
Hashing and Hashtable, application of hashing, advantages of hashing, disadva...
PPTX
Functional programming
PDF
Papers We Love Kyiv, July 2018: A Conflict-Free Replicated JSON Datatype
PPT
13. Query Processing in DBMS
PPTX
CS 542 -- Query Optimization
Join operation
Hashing and Hashtable, application of hashing, advantages of hashing, disadva...
Functional programming
Papers We Love Kyiv, July 2018: A Conflict-Free Replicated JSON Datatype
13. Query Processing in DBMS
CS 542 -- Query Optimization
Ad

Viewers also liked (20)

PPTX
CITY OF SPIES BY SORAYYA KHAN
PDF
ICCV2009: MAP Inference in Discrete Models: Part 5
PDF
What is Network Security?
PDF
Android Application: Introduction
PDF
Functional style programming
PPTX
Carrick - Introduction to Physics & Electronics - Spring Review 2012
PPTX
Serial Killers Presentation1
PPT
Intoduction to Network Security NS1
PPT
Securing Windows web servers
PPTX
Trends in spies
PPT
PPTX
Intelligence, spies & espionage
PPTX
Noah Z - Spies
PPT
PDF
Scalable Internet Servers and Load Balancing
PDF
Android UI
PPTX
Lecture#01
PDF
Functional Programming in R
PDF
Uni cambridge
 
CITY OF SPIES BY SORAYYA KHAN
ICCV2009: MAP Inference in Discrete Models: Part 5
What is Network Security?
Android Application: Introduction
Functional style programming
Carrick - Introduction to Physics & Electronics - Spring Review 2012
Serial Killers Presentation1
Intoduction to Network Security NS1
Securing Windows web servers
Trends in spies
Intelligence, spies & espionage
Noah Z - Spies
Scalable Internet Servers and Load Balancing
Android UI
Lecture#01
Functional Programming in R
Uni cambridge
 
Ad

More from Marcelo Cure (16)

PPTX
Api design
PPTX
Zero mq
PPTX
Dev ops engineering and chatbots
PPTX
Versioning APIs
PPTX
Building restful ap is with harvester js
PPTX
Cqrs, event sourcing and microservices
PPTX
Immutability and immutable js
PPTX
Polymer
PPTX
Hexagonal Architecture
PPTX
What's the value of the metrics
PPTX
PPTX
SciPy - Scientific Computing Tool
PPTX
Test driven development
PPTX
Usability testing
PPTX
Corona
PPTX
Apache lucene - full text search
Api design
Zero mq
Dev ops engineering and chatbots
Versioning APIs
Building restful ap is with harvester js
Cqrs, event sourcing and microservices
Immutability and immutable js
Polymer
Hexagonal Architecture
What's the value of the metrics
SciPy - Scientific Computing Tool
Test driven development
Usability testing
Corona
Apache lucene - full text search

Recently uploaded (20)

PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Best Practices for Rolling Out Competency Management Software.pdf
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Introduction to Artificial Intelligence
PDF
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
PDF
Build Multi-agent using Agent Development Kit
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
DOCX
The Five Best AI Cover Tools in 2025.docx
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Become an Agentblazer Champion Challenge Kickoff
PDF
A REACT POMODORO TIMER WEB APPLICATION.pdf
PPTX
FLIGHT TICKET RESERVATION SYSTEM | FLIGHT BOOKING ENGINE API
PPTX
What to Capture When It Breaks: 16 Artifacts That Reveal Root Causes
PDF
medical staffing services at VALiNTRY
PPTX
ISO 45001 Occupational Health and Safety Management System
PDF
The Role of Automation and AI in EHS Management for Data Centers.pdf
PPTX
Materi-Enum-and-Record-Data-Type (1).pptx
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PTS Company Brochure 2025 (1).pdf.......
Best Practices for Rolling Out Competency Management Software.pdf
L1 - Introduction to python Backend.pptx
Introduction to Artificial Intelligence
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
Build Multi-agent using Agent Development Kit
2025 Textile ERP Trends: SAP, Odoo & Oracle
ManageIQ - Sprint 268 Review - Slide Deck
The Five Best AI Cover Tools in 2025.docx
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Become an Agentblazer Champion Challenge Kickoff
A REACT POMODORO TIMER WEB APPLICATION.pdf
FLIGHT TICKET RESERVATION SYSTEM | FLIGHT BOOKING ENGINE API
What to Capture When It Breaks: 16 Artifacts That Reveal Root Causes
medical staffing services at VALiNTRY
ISO 45001 Occupational Health and Safety Management System
The Role of Automation and AI in EHS Management for Data Centers.pdf
Materi-Enum-and-Record-Data-Type (1).pptx

Functional programming with python