Hacker News new | ask | show | jobs
by eweise 1518 days ago
you can do it that way but you can't add the map method to a struct like persons.map() which would allow you to chain methods. But I guess with the multiple return value convention, you can't chain anyway very nicely.