Grails

Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile

Today I found two very interesting methods: takeWhile and dropWhile. The names itself reveals their work i.e. takeWhile (consider while some condition is true) and dropWhile (ignore while some condition is true). Although, these methods have been added to Groovy 1.8.7, but for character sequence, these methods are supported in Groovy...

by Divya Setia
Tag: groovy 2.0
12-Sep-2012

Grails

Writing sentences with Groovy 2.0

Groovy 2.0 comes with some amazing new features, which prompted a numbering scheme jump from 1.9.x to 2.0. One of the key features that I took note while going through  Guillaume Laforge's presentation at 33rd Degree was the support for plain language sentences made possible by optional parentheses,  and dots. We love the language...

by Vivek Krishna
Tag: groovy 2.0
22-Mar-2012