Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.haskell > #501
| From | Patrick Roemer <sangamon@netcologne.de> |
|---|---|
| Newsgroups | comp.lang.haskell |
| Subject | Re: standard function to zip a list with sequential numbers |
| Date | 2018-10-16 17:41 +0200 |
| Organization | news.netcologne.de |
| Message-ID | <pq50ru$6th$1@newsreader4.netcologne.de> (permalink) |
| References | <0mQwD.236894$ZJ2.33603@fx33.iad> <87woqkkm7f.fsf@bsb.me.uk> <9dTwD.237216$SN2.12769@fx38.iad> |
Responding to Pavel: > To rephrase the question, is there a standard name for a function like > "nmb" below: > > nmb :: [a] -> [(Int, a)] > nmb = zip [1..] > > and/or like "nmb0" below: > > nmb0 :: [a] -> [(Int, a)] > nmb0 = zip [0..] What should it be named? In Scala, nmb0 is zipWithIndex - but that's already longer than the Haskell implementation... Best regards, Patrick
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