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.33 test/data/example_alpha2/source.lt3
livetext-0.8.32 test/data/example_alpha2/source.lt3
livetext-0.8.31 test/data/example_alpha2/source.lt3
livetext-0.8.30 test/data/example_alpha2/source.lt3
livetext-0.8.29 test/data/example_alpha2/source.lt3
livetext-0.8.28 test/data/example_alpha2/source.lt3
livetext-0.8.27 test/data/example_alpha2/source.lt3
livetext-0.8.26 test/data/example_alpha2/source.lt3
livetext-0.8.25 test/data/example_alpha2/source.lt3
livetext-0.8.24 test/data/example_alpha2/source.lt3
livetext-0.8.23 test/data/example_alpha2/source.lt3
livetext-0.8.22 test/data/example_alpha2/source.lt3
livetext-0.8.21 test/data/example_alpha2/source.lt3
livetext-0.8.20 test/data/example_alpha2/source.lt3
livetext-0.8.19 test/data/example_alpha2/source.lt3
livetext-0.8.18 test/data/example_alpha2/source.lt3
livetext-0.8.17 test/data/example_alpha2/source.lt3
livetext-0.8.16 test/data/example_alpha2/source.lt3
livetext-0.8.15 test/data/example_alpha2/source.lt3
livetext-0.8.14 test/data/example_alpha2/source.lt3