Functional Programming Archive
The code presented here is available on github . The obvious parts You’ll be aware of these if you’ve ever bothered writing macros: Both prevent evaluation of the subsequent expression: `(1 2 3) ;; => (1 2 3) '(1 2 3) ;; => (1 2 3) Backtick allows you to
The code presented here is available on github. I’ve been trying to get my head around (and develop an intuition for) Clojure’s Transducers. During that process, I’ve been playing around with them a bit. These are some of the examples that I’ve worked out. I hope this will
This shall be a brief overview over Java Lambdas. I will try to make a comparison to anonymous functions concepts how they are being used in other languages. As a comparison language, I choose Scala, since it is statically typed (just like Java is). However, Scala provides type inference, which
Once in a while you may be facing the situation that requires you to walk a tree, do some kind of processing on each node and collect a result (or do other things). In case the tree is arbitrarily large and also arbitrarily branched, you have generally two options (as