Created
July 6, 2020 08:53
-
-
Save sixtyfive/a387166093e56d9c7613a8a2c5bdbeaf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def colprint(aofas) | |
s=""; aofas.each{|i,c| s<<i; s<<(' '*(c-i.size+1)) if c>=i.size}; s | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment