Adding a method for computing Cartesian Product to Groovy’s Collection(s)

In these days I'm using the Groovy programming language very often, I found this language very intuitive and expressive. I try to use, when it is appropriate and convenient , Functional programming style and methods. One of the key elements of functional programming paradigm (opposite to the imperative paradigm) is "thinking in  space rather than … Continue reading Adding a method for computing Cartesian Product to Groovy’s Collection(s)

Learning Functional Programming: a K-Means implementation in Groovy

Since few days I started studying the Functional Programming paradigm, so I decide practicing  by implementing a commonly used algorithm. Although Groovy it isn't strictly a functional programming language, it has all the characters of a functional programming language. K-Means K-Means is a method of cluster analysis which aims to partition n observations into k … Continue reading Learning Functional Programming: a K-Means implementation in Groovy