Sha256: 325486da03a272de048df5190d17cb3f2225f5f0542195c706a1ffb207f7e619

Contents?: true

Size: 551 Bytes

Versions: 66

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_text
   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

66 entries across 66 versions & 1 rubygems

Version Path
livetext-0.8.74 test/data/example_alpha2/source.lt3
livetext-0.8.73 test/data/example_alpha2/source.lt3
livetext-0.8.72 test/data/example_alpha2/source.lt3
livetext-0.8.71 test/data/example_alpha2/source.lt3
livetext-0.8.70 test/data/example_alpha2/source.lt3
livetext-0.8.69 test/data/example_alpha2/source.lt3
livetext-0.8.68 test/data/example_alpha2/source.lt3
livetext-0.8.67 test/data/example_alpha2/source.lt3
livetext-0.8.66 test/data/example_alpha2/source.lt3
livetext-0.8.65 test/data/example_alpha2/source.lt3
livetext-0.8.64 test/data/example_alpha2/source.lt3
livetext-0.8.63 test/data/example_alpha2/source.lt3
livetext-0.8.62 test/data/example_alpha2/source.lt3
livetext-0.8.61 test/data/example_alpha2/source.lt3
livetext-0.8.60 test/data/example_alpha2/source.lt3
livetext-0.8.59 test/data/example_alpha2/source.lt3
livetext-0.8.58 test/data/example_alpha2/source.lt3
livetext-0.8.57 test/data/example_alpha2/source.lt3
livetext-0.8.56 test/data/example_alpha2/source.lt3
livetext-0.8.55 test/data/example_alpha2/source.lt3