Comment Comment by eweise Not sure generics are amazing. I wish I could do something likeaddresses := persons.map(func(p Person) Address {p.address})Actually what I really want isaddresses := persons.map(p => p.address)But I understand Go doesn't allow that level of readability. parent eweise 4 years ago
addresses := persons.map(func(p Person) Address {p.address})
Actually what I really want is
addresses := persons.map(p => p.address)
But I understand Go doesn't allow that level of readability.