Skip to content

Anyone For Curry?

Just knocked up this little beauty and thought I’d share it with the world:

def fmt = String.&format
def fmtDate = fmt.curry('%tY/%<tm/%<td')

def now = new Date()

(-3..3).each { println fmtDate(now + it) }

I liked it, anyway; there’s a lot of Good Stuff going on here…

Java Enterprise Edition, JEE, JavaServer Pages, JSP, Tag Libraries, Servlets, Enterprise Java Beans, EJB, Java Messaging Service JMS, BEA Weblogic, JBoss, Application Servers, Spring Framework, Groovy, Grails, Griffon, Seam, Open Source, Service Oriented Architectures, SOA, Java 2 Standard Edition, J2SE