Functional Programming - Immutability, Pure Functions & Higher-Order Functions
Unlock the power of Functional Programming! Master immutability, pure functions, and higher-order functions to write predictable, testable, and concurrent code with this comprehensive flashcard deck.
Cards in this deck
(23 cards)Preview terms and definitions before starting your study session.
arr.push(4) (mutates arr), use const newArr = [...arr, 4]; or const newArr = arr.concat(4);. For objects, const newObj = { ...oldObj, key: 'newValue' }; creates a new object without modifying oldObj.1. Deterministic: Given the same input, it will always return the same output.
2. No Side Effects: It produces no observable changes to the system outside its local scope (e.g., modifying global state, I/O operations, changing arguments).
def add(a, b):
return a + blet total = 0;
function addToTotal(num) {
total += num; // Side effect: modifies external state
return total;
}total) and its output depends on the external total's current value, not just its inputs.Related Flashcard Sets
Explore similar study materials created by the community
HSK 1 - Basic Chinese Vocabulary, Pinyin & Character Recognition
Master foundational Mandarin Chinese with this HSK 1 flashcard deck covering essential vocabulary, Pinyin pronunciation rules, tones, and core sentence patterns.
Neuroscience - Neuroanatomy & Brain Function
Master high-yield neuroanatomy and functional neuroscience concepts with this comprehensive study deck. Perfect for medical students and biology majors covering brain regions, cranial nerves, neuronal action potentials, and major pathways.
Microsoft Azure Administrator (AZ-104) - Compute, Storage & Networking
Master core AZ-104 certification concepts including Microsoft Entra ID, Azure Storage, Virtual Networks, Virtual Machines, and Azure Monitoring with this high-yield flashcard deck.
MIT 18.06 - Linear Algebra: Vectors, Matrices & Eigenvalues
Master core linear algebra concepts from MIT 18.06, including vector spaces, matrix factorizations, determinants, and eigensystems. Designed for students in mathematics, data science, physics, and engineering.