gagnrunnsfræði
Gagnrunnsfræði, often translated as functional programming, is a programming paradigm that treats computation as the evaluation of mathematical functions and avoids changing-state and mutable data. It is a declarative programming style, meaning it focuses on what the program should accomplish rather than how to accomplish it.
Key concepts in Gagnrunnsfræði include pure functions, immutability, first-class functions, and recursion. A pure function always
Gagnrunnsfræði emphasizes composing small, reusable functions to build complex programs. This approach can lead to code