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


Groups > comp.lang.python > #83215

Re: Help with map python 2

From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: Help with map python 2
Date 2015-01-04 12:41 -0500
Organization IISS Elusive Unicorn
References <60e62263-6cd1-48b9-acbc-f1a0b947b8c9@googlegroups.com> <5vtiaah2nbfok53i2vknsv11tjt1q612aq@4ax.com>
Newsgroups comp.lang.python
Message-ID <mailman.17378.1420393285.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, 04 Jan 2015 12:32:22 -0500, Dennis Lee Bieber
<wlfraed@ix.netcom.com> declaimed the following:

>On Sun, 4 Jan 2015 03:34:21 -0800 (PST), flebber <flebber.crue@gmail.com>
>declaimed the following:
>

	<SNIP>

Talking to myself...

	Yes, you did ask about using map()... But I started from your initial
statement: PRINT the first 100 elements in the sequence... Nothing in
"print..." requires building a list of values first, and the definition for
adjacent value pairs is easily generated given merely a stream of integer
values with no fancy/complex set operations.

	Now -- if you wanted the first 99 values -- then some complexity creeps
in as you'd have to skip the final -(x+1) term.
-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
    wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

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


Thread

Help with map python 2 flebber <flebber.crue@gmail.com> - 2015-01-04 03:34 -0800
  Re: Help with map python 2 Chris Angelico <rosuav@gmail.com> - 2015-01-04 22:47 +1100
  Re: Help with map python 2 Alec Taylor <alec.taylor6@gmail.com> - 2015-01-04 22:47 +1100
  Re: Help with map python 2 Alec Taylor <alec.taylor6@gmail.com> - 2015-01-04 22:48 +1100
  Re: Help with map python 2 Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2015-01-04 14:08 +0200
    Re: Help with map python 2 flebber <flebber.crue@gmail.com> - 2015-01-05 03:33 -0800
      Re: Help with map python 2 Terry Reedy <tjreedy@udel.edu> - 2015-01-05 18:28 -0500
        Re: Help with map python 2 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-06 12:30 +1100
  Re: Help with map python 2 Peter Otten <__peter__@web.de> - 2015-01-04 17:33 +0100
  Re: Help with map python 2 Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-01-04 12:32 -0500
  Re: Help with map python 2 Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-01-04 12:41 -0500
  Re: Help with map python 2 Dan Stromberg <drsalists@gmail.com> - 2015-01-04 10:06 -0800
  Re: Help with map python 2 Terry Reedy <tjreedy@udel.edu> - 2015-01-04 16:13 -0500
    Re: Help with map python 2 flebber <flebber.crue@gmail.com> - 2015-01-05 03:37 -0800
  Re: Help with map python 2 Sayth Renshaw <flebber.crue@gmail.com> - 2015-01-04 21:22 +0000

csiph-web