Groovy web console

subscribe to the feed Subscribe
to this

Base 26 English word -> number

Published 3 months ago by claude with tags claude
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
"claude".collect { ((it as char) as int) - (("a" as char) as int) + 1 }.reverse().withIndex().collect { a, i -> a * (26 ** i) }.sum()