Well 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.
In any case, all you'd need to add is something like concat.