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


Groups > comp.lang.haskell > #495

Re: standard function to zip a list with sequential numbers

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.haskell
Subject Re: standard function to zip a list with sequential numbers
Date 2018-10-15 02:55 +0100
Organization A noiseless patient Spider
Message-ID <87woqkkm7f.fsf@bsb.me.uk> (permalink)
References <0mQwD.236894$ZJ2.33603@fx33.iad>

Show all headers | View raw


Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> writes:

> Is there a standard Haskell function to the effect of
>
> zip [0..]
> or
> zip [1..]
> ?

I don't know what either that short-hand, nor the wording used in the
subject ("zip a list with sequential numbers") is supposed to mean.

If you are fining it hard to specify what you mean, either explain it by
using some other programming language, or at least give a few examples
of what you want.  If zip [0..] should work, what do you want zip [0..]
to be?

-- 
Ben.

Back to comp.lang.haskell | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

standard function to zip a list with sequential numbers Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2018-10-14 19:32 -0400
  Re: standard function to zip a list with sequential numbers Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-15 02:55 +0100
    Re: standard function to zip a list with sequential numbers Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2018-10-14 22:47 -0400
      Re: standard function to zip a list with sequential numbers Paul Rubin <no.email@nospam.invalid> - 2018-10-14 20:02 -0700
      Re: standard function to zip a list with sequential numbers Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-10-15 16:43 +0100
      Re: standard function to zip a list with sequential numbers Patrick Roemer <sangamon@netcologne.de> - 2018-10-16 17:41 +0200
        Re: standard function to zip a list with sequential numbers Paul Rubin <no.email@nospam.invalid> - 2018-10-16 10:56 -0700
          Re: standard function to zip a list with sequential numbers Pavel <pauldontspamtolk@removeyourself.dontspam.yahoo> - 2018-10-17 01:43 -0400

csiph-web