posted 12 years ago
Hi All,
I am new to Groovy. I am running some basic examples while learning.
Could anyone of you tell me why the last print statement is printing true.
def noParam = { -> println "I'm executed"; return "no param"}
def oneParam = { out -> println "Executed with a ${out.class} parameter"; out << "one param"}
println noParam != "no param // Printing true
Thanks,
Yasasvi