Groovy web console

subscribe to the feed Subscribe
to this
site
could-you-make-me-a-hexagon-please (via #groovywebconsole)
tweet this snippet Tweet
this
script

could-you-make-me-a-hexagon-please

Published 2 months ago by Matias Bjarland with tags code golf
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
{n->(1-n..n-1)*.abs().any{println' '*it+'* '*(2*n+~it)}}(4)