menu

Recent questions tagged functional-programming

1 vote
2 answers
How to pass array []string to a function that takes a string...?Actually the question in the title. If I send in the forehead, then the execution of the program vyvalivaet something like this: panic: sql: expected 4 arguments, got 1 ...
by shpaker
asked Jul 9, 2020
8 votes
1 answer
Who uses FSharp for solving applied problems?Recently drew attention to functional programming languages, and after some ordeal stopped for FSharp, mainly due to the binding of it to .Net. The period of review, I re ...
1 vote
3 answers
What is a list in functional programming languages?Than a list in functional programming languages different from the usual list? :) As it is stored in memory? ...
6 votes
6 answers
Getting started with Scala (?) the developer of the PHP world?Good time! What is already there?Have experience of development (including commercial) in php/js/python, a little (just for yourself) written on java. Why?Caught myself t ...
2 votes
2 answers
How to implement vladicescu pure function without type classes?A problem essence in the following. I want to create vladicescu create list/array: list(1)(2)(3)(4)(5)() === 1, 2, 3, 4, 5But for simplicity, let's take vladicescu func ...
2 votes
1 answer
How to recursively parse braces?Trying to expand a string of the form "(+ 12 ( 3 4))"the list of tokens of the form "(", "+", "12", "(", "", "3", "4", ")", ")"Wrote something in Haskell: import Data ...
1 vote
2 answers
How to know the object's constructor and compare to another constructor in F#?Assume that we have a type type. A, A1, B, B1, B2, B, C - some types. type Type = | Cons1 A A1 | Cons2 B B1 B2 | Cons3 CAnd a function that takes two objects of type type ...
by zm_sansan
asked May 16, 2020
4 votes
2 answers
What books for maths and FP easy to learn?I would like to ask the knowledgeable on what books you can apnut skills mathematics and functional programming. Current knowledge of math, I have 9 class, so I would lik ...
by OlegWock
asked May 15, 2020
4 votes
1 answer
Explain about the circuit in the OP?For example, the code in Haskell: add a b = a + bEverything seems normal, pure function. But you can write in another way, with blackjackonline and lambdas: add = \a -&gt ...
2 votes
2 answers
How relevant these books on Scala? Alvin Alexander - Scala cookbook(2013); Bevilacqua-Linn M. - Functional Programming Patterns in Scala and Clojure(2013)Paul between chiusano, Runar Bjarnason - Functiona ...
by abs0lut
asked May 15, 2020
2 votes
1 answer
How to check whether a string is a number in Haskell?There is such a code in Haskell: import Data.CharisAtom :: String -> BoolisAtom word = all isAlpha wordtoken :: String -> Stringtoken word | word `elem` "+", " ...
1 vote
1 answer
Why not head working with strings in Haskell?import Data.Listmain :: IO()main = do word <- getLine putStrLn(head word)$ ghc Main.hs1 of 1 Compiling Main ( Main.hs, Main.o )Main.hs:6:19: Cou ...
1 vote
3 answers
How to get through Java to Scala?1) how to better understand the basics of OOP and FP: in parallel or sequentially? 2) is there any replacement for Java Scala in a commercial development and, consequentl ...
3 votes
5 answers
Where, when and how to use lambda expressions?Tell me) Here I read Richter, raise the level so to speak. Interested in the question, and in some cases you can use lambdas and when to use a particular method or delega ...
3 votes
1 answer
And what is a hardcore book lambda icelene, recursion, such that would be more math and less programming?Recommend a good book on the lambda icelene, recursion and now this. I want to better understand the fundamental theoretical aspects of functional programming. I was advi ...
3 votes
6 answers
Which functional language to choose as a subsidiary after Python?Good day, very much wanted to dive into functional programming, more than a year programming in Python, but I often hear and see that "Python is not intended as a functio ...
by Derfirm
asked May 6, 2020
3 votes
1 answer
image
Does not run ClojureScript REPL. How to start?The people who write code are not always well-written tutorials on it. And it is clear. Not everyone is given. But people who want to promote a new platform should give i ...
38 votes
3 answers
How to raise materiel for the development of (mathematical basis)?Good afternoon. It took some knowledge of computer vision, stumbled upon Anton Konushin course "Introduction to computer vision", but faced with the fact that what he exp ...
5 votes
1 answer
A few questions on Scheme and functional programming languages?I would like to learn functional programming. Particularly interested in languages, Scheme, Clojure, Erlang and Scala. Also often heard that the most powerful FP language ...
by benoni
asked Apr 26, 2020
5 votes
1 answer
As far as Haskell is well-suited to competitive computing?Good afternoon. Now working need began to actively use Erlang. Work with programs that must run in parallel and in a distributed manner. But here is the syntax I do not l ...