3 ms·
Eh, maybe for more complicated examples, but I think that comprehension is a lot more complicated than: filter isValid (map peopleNamed names)
by aninhumer 10y ago
Eh, maybe for more complicated examples, but I think that comprehension is a lot more complicated than:
filter isValid (map peopleNamed names)
- pklausler 10y agoExcept that doesn't support multiple people with the same name.
- aninhumer 10y agoWell I was basing mine on the original. If peopleNamed in fact returns a list, then I'm not really sure what it's doing to create that? (I assumed your example was Haskell, in which case I don't think it can do anything particularly useful) In any case, all you'd need to add is something like concat.