elliotchance / pie

🍕 Enjoy a slice! A utility library for dealing with slices and maps that focuses on type safety and performance.
https://pkg.go.dev/github.com/elliotchance/pie/v2
MIT License
1.96k stars 91 forks source link

added Dropwhile() and fixes issue in #173 #174

Closed unique1o1 closed 3 years ago

unique1o1 commented 3 years ago

Added DropWhile() function which is similar to dropwhile() function from itertools in Python. The DropWhile() function drops items from the slice while f(item) function returns true.

Also used go generate in the README since go generate generate.go doesn't work from #173.


This change is Reviewable