functional-programming
Why F# core library does not offer a generic sequence slicing function?
Cutting sequence into batches of fixed length, making overlapping sliding data windows, getting each n-th item from a sequence - all these tasks can be solved using a single generic slicing function.[详细]
2023-04-07 18:44 分类:问答Functional programming vs. variable and memory
Does functional programming use variables? If no, how do the functional programs occu开发者_JS百科py memory?Both functional programs and imperative (C#, Java) programs use variables, but they define[详细]
2023-04-07 15:33 分类:问答C# Lambda and LINQ tutorial for an experienced functional programmer [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2023-04-07 12:39 分类:问答Explanation of combinators for the working man
What is a combinator?? Is it \"a function or definition with no free variables\" (as defined on SO)? Or how about this:according to John Hughes in his well-known paper on Arrows, \"a combinator is a[详细]
2023-04-07 07:16 分类:问答OCaml: Using a comparison operator passed into a function
I\'m an OCaml noob.I\'m trying to figure out how to handle a comparison operator that\'s passed into a function.[详细]
2023-04-07 04:56 分类:问答In the SECD Machine how does "rap" work?
I am writing a simulator of the SECD machine in C# guided by the description on Wikipedia. I have the basic operations completed, but I am not sure how to implement the rap instruction.[详细]
2023-04-07 03:45 分类:问答What's the expression equivalent of the Assignment statement called?
In imperative programming, using statements, you do stuff like: a = 10 b = a * 2 print a # 20 I have been thinking that the equivalent, in expressions, should be something like this:[详细]
2023-04-06 23:55 分类:问答Using LINQ query syntax with custom Maybe monad implementation
I am trying to write a simple Maybe monad in C#. I want to be able to use the LINQ query syntax with it. This is what I have come up with so far:[详细]
2023-04-06 20:40 分类:问答Most idiomatic way to write batchesOf size seq in F#
I\'m trying to learn F# by rewriting some C# algorithms I have into idiomatic F#. One of the first functions I\'m trying to rewrite is a batchesOf where:[详细]
2023-04-06 19:40 分类:问答How would this snippet translate to Haskell?
I\'m struggling with Haskell, and the idea of using recursion to iterate over things. For instance, how would[详细]
2023-04-06 12:53 分类:问答