Groovy web console

subscribe to the feed Subscribe
to this
site
hashcode (via #groovywebconsole)
tweet this snippet Tweet
this
script

hashcode

Published 3 months ago by me with tags quick test
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
def result = 0;
"This is a test string".getChars().each{
    result = 31*result + (int)it;
}
assert result == 1519107788