Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
hsldymq committed Mar 28, 2024
1 parent b83fe15 commit 9b78027
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions funcs_transformation.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,3 @@ func ToListBy[T, R any](e Enumerable[T], transformer func(T) R) *List[R] {
}
return l
}

func ToDictBy[T any, K comparable, V any](e Enumerable[T], transformer func(T) (K, V)) *Dict[K, V] {
l := NewDict[K, V]()
for each := range e.Iter() {
l.Set(transformer(each))
}
return l
}

0 comments on commit 9b78027

Please sign in to comment.