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


Groups > comp.lang.forth > #57637

.Re: Using Loops to track user input

From "Robert L." <No_spamming@noWhere_7073.org>
Newsgroups comp.lang.forth
Subject .Re: Using Loops to track user input
Date 2017-04-20 08:32 +0000
Organization Aioe.org NNTP Server
Message-ID <od9rm2$1iu5$1@gioia.aioe.org> (permalink)

Show all headers | View raw


> Not to neglect the 1-liner:
>
> import operator; reduce(operator.add,[int(raw_input("Number>")) for i in
> range(10)])

(0..9).map{print "Number>"; gets().to_i}.reduce &:+

In Forth?

-- 
There were even reports of Germans being expelled from their apartments to make
room for the invaders.  Other YouTube videos showed Moslems molesting bathers,
male and female, at public pools and defecating in the water.
www.thepoliticalcesspool.org/jamesedwards/understanding-invasion-europe/

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


Thread

.Re: Using Loops to track user input "Robert L." <No_spamming@noWhere_7073.org> - 2017-04-20 08:32 +0000
  Re: .Re: Using Loops to track user input Julian Fondren <julian.fondren@gmail.com> - 2017-04-20 02:08 -0700

csiph-web