Top "Functional-programming" questions

Functional programming is a programming paradigm based upon building abstractions using functions, avoiding side effects and change of state.

Why isn't Python very good for functional programming?

I have always thought that functional programming can be done in Python. Thus, I was surprised that Python didn't get …

python functional-programming
How does functools partial do what it does?

I am not able to get my head on how the partial works in functools. I have the following code …

python functional-programming partial-application functools
What is Scala's yield?

I understand Ruby and Python's yield. What does Scala's yield do?

scala functional-programming yield
What is the difference between Scala's case class and class?

I searched in Google to find the differences between a case class and a class. Everyone mentions that when you …

scala functional-programming case-class
Does functional programming replace GoF design patterns?

Since I started learning F# and OCaml last year, I've read a huge number of articles which insist that design …

oop design-patterns functional-programming
functional way to iterate over range (ES6/7)

What is the best way to do the below in more functional way (with ES6/ES7) let cols = []; for (let …

javascript functional-programming ecmascript-6 ecmascript-harmony
What is a Y-combinator?

A Y-combinator is a computer science concept from the “functional” side of things. Most programmers don't know much at all …

functional-programming computer-science theory definition combinators
Dart: mapping a list (list.map)

I have a list of Strings, e.g., var moviesTitles = ['Inception', 'Heat', 'Spider Man']; and wanted to use moviesTitles.map …

functional-programming dart flutter
Removing elements with Array.map in JavaScript

I would like to filter an array of items by using the map() function. Here is a code snippet: var …

javascript functional-programming data-manipulation client-side
What is the 'pythonic' equivalent to the 'fold' function from functional programming?

What is the most idiomatic way to achieve something like the following, in Haskell: foldl (+) 0 [1,2,3,4,5] --> 15 Or its equivalent …

python list functional-programming reduce fold