Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.haskell > #503
| From | Paul Rubin <no.email@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.haskell |
| Subject | Re: standard function to zip a list with sequential numbers |
| Date | 2018-10-16 10:56 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <87pnw9lqqc.fsf@nightsong.com> (permalink) |
| References | <0mQwD.236894$ZJ2.33603@fx33.iad> <87woqkkm7f.fsf@bsb.me.uk> <9dTwD.237216$SN2.12769@fx38.iad> <pq50ru$6th$1@newsreader4.netcologne.de> |
Patrick Roemer <sangamon@netcologne.de> writes: > What should it be named? In Scala, nmb0 is zipWithIndex - but that's > already longer than the Haskell implementation... In Python it's "enumerate", but in Haskell I don't think a special purpose function is needed. "zip [0..]" works perfectly well.
Back to comp.lang.haskell | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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