Top "Functional-programming" questions

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

map function for objects (instead of arrays)

I have an object: myObject = { 'a': 1, 'b': 2, 'c': 3 } I am looking for a native method, similar to Array.prototype.map …

javascript node.js functional-programming map-function
Does JavaScript have a method like "range()" to generate a range within the supplied bounds?

In PHP, you can do... range(1, 3); // Array(1, 2, 3) range("A", "C"); // Array("A", "B", "C") That is, there is a function …

javascript arrays functional-programming
List comprehension vs. lambda + filter

I happened to find myself having a basic filtering need: I have a list and I have to filter it …

python list functional-programming filter lambda
What is tail recursion?

Whilst starting to learn lisp, I've come across the term tail-recursive. What does it mean exactly?

algorithm language-agnostic functional-programming recursion tail-recursion
Index inside map() function

I am missing a option how to get the index number inside the map function using List from Immutable.js: …

javascript functional-programming immutable.js
Functional style of Java 8's Optional.ifPresent and if-not-Present?

In Java 8, I want to do something to an Optional object if it is present, and do another thing if …

java functional-programming java-8 optional
PHP's array_map including keys

Is there a way of doing something like this: $test_array = array("first_key" => "first_value", "second_key" => "…

php functional-programming
How to use filter, map, and reduce in Python 3

filter, map, and reduce work perfectly in Python 2. Here is an example: >>> def f(x): return x % 2 != 0 …

python python-3.x filter functional-programming reduce
Functional programming vs Object Oriented programming

I've been mainly exposed to OO programming so far and am looking forward to learning a functional language. My questions …

oop functional-programming paradigms
What is (functional) reactive programming?

I've read the Wikipedia article on reactive programming. I've also read the small article on functional reactive programming. The descriptions …

functional-programming terminology reactive-programming frp