3 ms·
its worse. You can't do basic things like make a map method.
by eweise 4y ago
its worse. You can't do basic things like make a map method.
- liambowen 4y agoWhy can't you? https://github.com/samber/lo/blob/master/slice.go#L20 https://github.com/samber/lo/blob/master/slice.go#L20
- eweise 4y agoyou 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.