Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #52897

:Re: Is there a way to shorted this line?

From "Robert L." <No_spamming@noWhere_7073.org>
Newsgroups comp.lang.forth
Subject :Re: Is there a way to shorted this line?
Date 2016-11-27 10:21 +0000
Organization Aioe.org NNTP Server
Message-ID <o1ec40$oeb$1@gioia.aioe.org> (permalink)

Show all headers | View raw


> > printf maybe?
> >
> > print " 
> > -------------------------+---------+---------+---------+-----------------------------\n";
> >
> >
> > Many thanks,
> > -T
> 
> $format = "%25.25s+%9.9s+%9.9s+%9.9s+%30.30s\n";
> 
> printf $format, ("-"x40)x5;

Ruby:

puts [25,9,9,9,29].map{|n| '-'*n}.join '+'

In Forth?

-- 
Jews totally run Hollywood....  But I don't care if Americans think we're
running the news media, Hollywood, Wall Street or the government.  I just care
that we get to keep running them. --- Joel Stein
articles.latimes.com/2008/dec/19/opinion/oe-stein19
archive.org/download/DavidDukeTv/DoJewsControlTheMediaTheLaTimesSaysYes.flv

Back to comp.lang.forth | Previous | Next | Find similar | Unroll thread


Thread

:Re: Is there a way to shorted this line? "Robert L." <No_spamming@noWhere_7073.org> - 2016-11-27 10:21 +0000

csiph-web