Skip to content

Commit

Permalink
feat: Implement funk.Partition
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenvantuan2391996 committed Aug 8, 2023
1 parent 1909702 commit aedee14
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
// The predicate function should have the signature func(elementType) bool.
// The function returns two new slices: one containing elements that satisfy the predicate,
// and the other containing elements that do not satisfy the predicate.
// An error is returned if any occurs.
func Partition(in, predicate interface{}) interface{} {
if !IsCollection(in) {
panic("First parameter must be a collection")
Expand Down

0 comments on commit aedee14

Please sign in to comment.