mirror of
https://github.com/IBM/fp-go.git
synced 2025-11-23 22:14:53 +02:00
fix: support go iterators and cleanup types
Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
@@ -46,6 +46,6 @@ func StrictUniq[A comparable](as []A) []A {
|
||||
// // Result: [{"Alice", 30}, {"Bob", 25}, {"Charlie", 30}]
|
||||
//
|
||||
//go:inline
|
||||
func Uniq[A any, K comparable](f func(A) K) func(as []A) []A {
|
||||
func Uniq[A any, K comparable](f func(A) K) Operator[A, A] {
|
||||
return G.Uniq[[]A](f)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user