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 a monad?

Having briefly looked at Haskell recently, what would be a brief, succinct, practical explanation as to what a monad essentially …

haskell functional-programming monads terminology
Getting started with Haskell

For a few days I've tried to wrap my head around the functional programming paradigm in Haskell. I've done this …

haskell functional-programming
How do I use the includes method in lodash to check if an object is in the collection?

lodash lets me check for membership of basic data types with includes: _.includes([1, 2, 3], 2) > true But the following doesn't work: _.…

javascript functional-programming lodash
How to sort with lambda in Python

In Python, I am trying to sort by date with lambda. I can't understand my error message. The message is: &…

python sorting functional-programming anonymous-function
How to use underscore.js as a template engine?

I'm trying to learn about new usages of javascript as a serverside language and as a functional language. Few days …

javascript node.js functional-programming underscore.js template-engine
Javascript reduce on array of objects

Say I want to sum a.x for each element in arr. arr = [{x:1},{x:2},{x:4}] arr.reduce(function(a,…

javascript functional-programming node.js reduce
Using python map and other functional tools

This is quite n00bish, but I'm trying to learn/understand functional programming in python. The following code: foos = [1.0,2.0,3.0,4.0,5.0] bars = [1,2,3] …

python dictionary functional-programming
Does Java SE 8 have Pairs or Tuples?

I am playing around with lazy functional operations in Java SE 8, and I want to map an index i to …

java lambda functional-programming java-8 java-stream
What is Haskell used for in the real world?

There is a lot of hype around Haskell, however, it is hard to get information on how it is used …

haskell functional-programming programming-languages
OOP vs Functional Programming vs Procedural

What are the differences between these programming paradigms, and are they better suited to particular problems or do any use-cases …

oop functional-programming paradigms procedural-programming