Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.haskell > #431
| From | Mark Carroll <mtbc@bcs.org> |
|---|---|
| Newsgroups | comp.lang.haskell |
| Subject | Re: how to generalize these two map into one map |
| Date | 2016-07-27 08:39 +0100 |
| Organization | none |
| Message-ID | <87shuvjzrp.fsf@ixod.org> (permalink) |
| References | <49f1ff1f-57f1-4f22-b943-fcbd28f6aac5@googlegroups.com> |
On 27 Jul 2016, Ho Yeung Lee wrote: > import Data.Foldable > let aa = map (+1.2) [1,2] > let bb = map (+1.4) [2,3] > > i find foldr, but how to use it for above two map? I am not sure for what result you are hoping, but perhaps "zip" can help? -- Mark
Back to comp.lang.haskell | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
how to generalize these two map into one map Ho Yeung Lee <davidbenny2000@gmail.com> - 2016-07-26 22:08 -0700
Re: how to generalize these two map into one map Mark Carroll <mtbc@bcs.org> - 2016-07-27 08:39 +0100
Re: how to generalize these two map into one map meInvent bbird <jobmattcon@gmail.com> - 2016-07-27 02:17 -0700
Re: how to generalize these two map into one map Mark Carroll <mtbc@bcs.org> - 2016-07-27 10:30 +0100
Re: how to generalize these two map into one map meInvent bbird <jobmattcon@gmail.com> - 2016-07-27 20:20 -0700
csiph-web