Top "Functional-programming" questions

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

Is functional GUI programming possible?

I've recently caught the FP bug (trying to learn Haskell), and I've been really impressed with what I've seen so …

user-interface haskell f# functional-programming
Map function in MATLAB?

I'm a little surprised that MATLAB doesn't have a Map function, so I hacked one together myself since it's something …

matlab functional-programming map-function
How to call Python functions dynamically

I have this code: fields = ['name','email'] def clean_name(): pass def clean_email(): pass How can I call clean_…

python functional-programming
Merging two lists in Haskell

Can't figure out how to merge two lists in the following way in Haskell: INPUT: [1,2,3,4,5] [11,12,13,14] OUTPUT: [1,11,2,12,3,13,4,14,5]

list haskell merge functional-programming interleave
difference between foldLeft and reduceLeft in Scala

I have learned the basic difference between foldLeft and reduceLeft foldLeft: initial value has to be passed reduceLeft: takes first …

scala functional-programming fold higher-order-functions
What's the difference between lapply and do.call?

I'm learning R recently and confused by two function: lapplyand do.call. It seems that they're just similar to map …

r functional-programming
How to zip lists in a list

I want to zip the following list of lists: >>> zip([[1,2], [3,4], [5,6]]) [[1,3,5], [2,4,6]] This could be achieved with the current …

python functional-programming
Why hasn't functional programming taken over yet?

I've read some texts about declarative/functional programming (languages), tried out Haskell as well as written one myself. From what …

functional-programming
How to programmatically clear/reset React-Select?

ReactSelect V2 and V3 seems to have several props like clearValue, resetValue and setValue. Whatever I'm trying, I'm not able …

javascript reactjs functional-programming react-hooks react-select
Split JavaScript array in chunks using Lodash

I need to split a JavaScript array into n sized chunks. E.g.: Given this array ["a1", "a2", "a3", "a4", "…

javascript split functional-programming underscore.js lodash