Flashcards
Object of Functional Programming
Cards in this deck (5)
- 1Functions in the mathematical senseAlways return the same output for the same input
- 2A function is stateless, meaning?It has no memory
It has no variables
It has no memory of previous inputs - 3Benefits of Functional ProgrammingComposition over communication
f(g(a)), h(b), g(c))
Stateless functions g and h can be evaluated in any order
Even in parallel
Communication only through return values
No race conditions, no synchronisation, no mutual exclusion - 4What is a Functional Interface?Any interface with a single abstract method
- 5—
Information
- Description
- Certification Computer Studies Flashcards on Object of Functional Programming, created by Martyn Longhurst on 30/09/2019.
- Created by
- Martyn Longhurst
- Views
- 10
- Tags
- Rating