python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Problem with Either and errors types incompatibility
I have a problem with Either errors types incompatibility.
A method to create Account entity:
static Either<AccountError,Account> create(
String userNameCandidate,
UserNameUniquenessValidator us...
Sampeteq
Votes: 0
Answers: 2
pack and unpack to switch from function taking array of argumento to variadic function and viceversa
I've just been wandering why lodash/fp doesn't have these two functions:
unpack = f => x => f(...x)
pack = f => (...x) => f(x)
I'm borrowing the name unpack from the function boost::hana:...
Enlico
Votes: 0
Answers: 0
How to build the dictionary from two other dictionaries by some condition on their values
I am new to functional programming and so can not imagen how to build the new dictionary based on two other dictionaries with similar set of keys. The new dictionary will have the entries with all key...
Igor Izvarin
Votes: 0
Answers: 4
Functional Programming in Kotlin: Counting elements in list by using fold
I've got the task to write a function using fold (functional programming) to count the number of elements in a list that fulfill the predicate. I was given the function signature fun <A> count(l...

Pythagorion
Votes: 0
Answers: 4