pie
pie copied to clipboard
๐ Enjoy a slice! A utility library for dealing with slices and maps that focuses on type safety and performance.
Could I remove an element by its value and index ?
add feat: SplitSlice SplitSlice returns splited slices which length equals splitLength. This is useful in scenarios such as request or saving data in batch when the size of transport data...
I want to add remove๏ผlike: ```go listA := pie.Strings{"1", "2"} listB := pie.Strings{"1", "3"} // [ "2" ] fmt.Println(listA.Remove(listB...)) ``` In some scenarios, there will be a desire to weed...
I'm finding there are cases where I need to transform elements and skip/ignore some. It can be done with `.Transform().Select()` but it seems a little verbose for me.
A generated marker is a comment that let applications know to exclude code from code review, such as reviewable.io.
Find will return the index of the first element that matches, or -1 if none match.