Recently I\'ve been reading some materials about functional programming in Python, one of them is here: http://www.ibm.com/developerworks/linux/library/l-prog2/index.html
I know the conc开发者_运维问答ept and how to use of currying, but I wonder what is its value in practice?As the related question covers, Practical use of curried functions? , there are many reasons wh
I\'ve always programmed on C++ and Pascal and think too imperatively. So, could anyone help me with 开发者_运维技巧the question:
I use F# a lot. All the basic collections in F# implement IEumberable interface, thus it is quite natural to access them using the single Seq module in F#. Is this possible in OCaml?
There doesn\'t开发者_Python百科 seem to be much online on making sure functions remains pure in F#.
I have a record type that is 4 Word32. data MyType = MyType {a :: Word32, b :: Word32, c :: Word32, d :: Word32 }
I\'ve been playing with the code associated with this really cool article. In the articles code a variable is assigned a function as follows:
I\'ve never needed to do this in Ruby, but my boss, being a C programmer, has put to me a problem that I honestly can\'t provide an elegant solution for in Ruby, without basically doing it in the C wa
Ruby (and Perl) has a concept of the flip flop: file = File.open(\"ordinal\") while file.gets print if ($_ =~ /third/) .. ($_ =~ /fifth/)
When writing object-oriented software, I use dependency injection a lot: to compose together high-level functionality from lower-level capabiliti开发者_C百科es: my account management service uses re