lo icon indicating copy to clipboard operation
lo copied to clipboard

Add MapAsync

Open wanglihui opened this issue 2 years ago • 1 comments

Add MapAsync to Support Async Map; like Promise.all

wanglihui avatar Mar 09 '22 07:03 wanglihui

I think it overlaps with lop.Map.

https://github.com/samber/lo/blob/master/parallel/slice.go

I'm not sure returning an error in Map is a good idea anyway. IMO, using an Optional/Maybe data structure is better.

WDYT ?

samber avatar Mar 09 '22 11:03 samber