Last active
December 22, 2015 10:39
-
-
Save RangerMauve/6459971 to your computer and use it in GitHub Desktop.
golf.js #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s='*' | |
i=input | |
a=Array | |
j='join' | |
r=a(i+1)[j](s) | |
c=a(--i) | |
b='\n'+s+c[j](' ')+s | |
output=r+c[j](b)+(i?'\n'+r:'') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment