Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.haskell > #367
| From | Mark Carroll <mtbc@bcs.org> |
|---|---|
| Newsgroups | comp.lang.haskell |
| Subject | Re: List |
| Date | 2016-04-16 12:46 +0100 |
| Organization | none |
| Message-ID | <87mvotkc7j.fsf@ixod.org> (permalink) |
| References | <8a0b955e-17d4-42f1-bde0-c1ca5623ffe3@googlegroups.com> <8737qmvo4b.fsf@bsb.me.uk> <279ae91d-7b5e-47ae-b6ea-70811450239c@googlegroups.com> <76f6faf7-842d-4786-8a5b-545aed84a2d9@googlegroups.com> |
On 16 Apr 2016, pip7k wrote: > I tried the following without success.. > > isGood :: String -> Bool > isGood (x:_) = x <= 'M' > isGood _ = False > > myList = ["Apple","Fruit","Pears","Misc"] > aa = map (isGood) $ map (head) myList Did you simply want, aa = map isGood myList ...? -- Mark
Back to comp.lang.haskell | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
List pip7kids@gmail.com - 2016-04-15 08:23 -0700
Re: List Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-04-15 17:21 +0100
Re: List pip7k <philsivyer@googlemail.com> - 2016-04-16 03:28 -0700
Re: List pip7k <philsivyer@googlemail.com> - 2016-04-16 03:57 -0700
Re: List Mark Carroll <mtbc@bcs.org> - 2016-04-16 12:46 +0100
Re: List philsivyer@googlemail.com - 2016-04-16 04:07 -0700
csiph-web