Sha256: c8b010278533cc9fc1bb78c9049a6807a742b5b19a5e2de6af829f7bbd8c1b43
Contents?: true
Size: 551 Bytes
Versions: 33
Compression:
Stored size: 551 Bytes
Contents
.def alpha cols = _args.first cols = "1" if cols == "" cols = cols.to_i raise "Columns must be 1-5" unless cols.between?(1,5) text = _body.join text.gsub!(/\n/, " ") words = text.split.sort words.each_slice(cols) do |row| row.each {|w| _print '%-15s' % w } _puts end .end Here is an alphabetized list: .alpha 3 fishmonger anarchist aardvark glyph gryphon halcyon zymurgy mataeotechny zootrope pareidolia manicotti quark bellicose anamorphic cytology fusillade ectomorph .end I hope that worked a second time.
Version data entries
33 entries across 33 versions & 1 rubygems