Top "Functional-programming" questions

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

What is polymorphism in Javascript?

I have read some possible article I could found on the internet on polymorphism. But I think I could not …

javascript oop functional-programming polymorphism parametric-polymorphism
Java 8 Supplier with arguments in the constructor

Why do suppliers only support no-arg constructors? If the default constructor is present, I can do this: create(Foo::new) …

java lambda functional-programming java-8 functional-interface
What part of Hindley-Milner do you not understand?

I swear there used to be a T-shirt for sale featuring the immortal words: What part of do you not …

haskell functional-programming lambda-calculus hindley-milner denotational-semantics
How do I write a function that returns another function?

In Python, I'd like to write a function make_cylinder_volume(r) which returns another function. That returned function should …

python function functional-programming currying
Useful code which uses reduce()?

Does anyone here have any useful code which uses reduce() function in python? Is there any code other than the …

python functional-programming
Javascript equivalent of Python's zip function

Is there a javascript equivalent of Python's zip function? That is, given multiple arrays of equal lengths create an array …

javascript python functional-programming transpose
How to update element inside List with ImmutableJS?

Here is what official docs said updateIn(keyPath: Array<any>, updater: (value: any) => any): List<T&…

javascript functional-programming immutable.js
any() function in Python with a callback

The Python standard library defines an any() function that Return True if any element of the iterable is true. If …

python functional-programming callback any
Zipping streams using JDK8 with lambda (java.util.stream.Streams.zip)

In JDK 8 with lambda b93 there was a class java.util.stream.Streams.zip in b93 which could be used …

lambda functional-programming java-8 lazy-evaluation java-stream
python: get number of items from list(sequence) with certain condition

Assuming that I have a list with huge number of items. l = [ 1, 4, 6, 30, 2, ... ] I want to get the number of items …

python list count functional-programming sequence