Questions tagged [Functional programming] (89)

5
answers

How called functional programming languages, and why they are little used for commercial development?

Lately, very interested in functional programming, especially Haskell, but I almost didn't find it vacancies. Afraid to study them, not knowing whether I will pay it.
lilla_Sau asked April 8th 20 at 17:11
2
answers

If the functional component receives data from the server to useEffect(), whether it will be pure function?

If the functional component receives data from the server to useEffect(), will it be considered a pure function? And why? Thanks for the replies ;)
marcella asked April 8th 20 at 09:51
1
answer

The difference between first class and first-class functions?

Or is it the same thing? If you have any examples, preferably in the context of JS
curtis33 asked April 4th 20 at 12:18
0
answer

A Haskell program how to display data structures?

Data structure: country; reserve; number of species of rare animals in the reserve. Create two queries, allowing you to list "Country – a number of reserves" and a list of those nature reserves where many rare species. Tell me how display a list of Country - the number of reserves An example of the structure i1 = Reserves {...
edythe.McCullou asked April 3rd 20 at 18:03
1
answer

Why shows oshibku? like all true? and how to fix?

Good day! Shows error requires let and how to fix? The program not entirely ,the problem is in the validation block to enter letters In this part of the validation block letters and block check digits are the same but digital does not swear,and the validation block letters arguing..
hollis.Brekke55 asked April 3rd 20 at 17:08
1
answer

Expansion of the Fibonacci numbers to negative numbers, what does it mean?

Task: Define the two functions in the language Haskell (recursive and using tools lists) for all the options. Tell me what does the Extension of the Fibonacci numbers to negative numbers?
Dewayne_Beah asked April 2nd 20 at 15:59
2
answers

What could you recommend for practicing skills in functional programming and processing of arrays in JavaScript?

Good day, In my team, a lot of programmers who not only have not heard about functional programming, but I do not know about working with arrays using map, reduce, filter, find ... I'm trying a little to increase their level of :) and I want to ask you to send interesting tasks that you can set to practice the skill of ha...
Claudine20 asked April 1st 20 at 15:48
1
answer

Why this function does not output an array of integers,positive integers raised to the power of 2?

const squareList = (arr) => { arr.filter(elem=> Number.isInteger(elem)&&elem>0) .map(elem=>Math.pow(elem, 2)); return arr; };
Citlalli asked March 31st 20 at 21:57
2
answers

How much stronger in Ruby draft on functional programming?

Browsing through jobs is often seen in the technology along with a functional language Ruby. For example, there are ligaments: ruby-on-rails, ruby, erlang, elixir or ruby, javascript, ruby-on-rails, elm, elixir or ruby-on-rails, reactjs, varnish, haskell, elasticsearch. How strong is Ruby the emphasis on functional programm...
Annetta13 asked March 30th 20 at 01:19
1
answer

Why functional programming is considered to be thread-safe?

The question of why the OP is considered thread-safe? But if in application memory to store common information such as a message queue or something similar. What is the approach used in FP to do this?
amaya.Champlin asked March 27th 20 at 12:27