Skip to content

Instantly share code, notes, and snippets.

@nsmaciej
Created February 16, 2013 00:58
Show Gist options
  • Save nsmaciej/4964913 to your computer and use it in GitHub Desktop.
Save nsmaciej/4964913 to your computer and use it in GitHub Desktop.
A tree printing script for code golfing.
r=replicate;main=(\x->mapM_ putStrLn[r(x-l)' '++r(l+l-1)'*'|l<-[1..x]++[1]])=<<(readLn::IO Int)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment