Documentation ¶
Index ¶
- func DedupSorted[T comparable, S ~[]T](xs S) S
- func DedupSortedFunc[T any, S ~[]T](xs S, eq func(a, b T) bool) S
- func FoldLeft[X, Acc any, S ~[]X](xs S, init Acc, fn func(Acc, X) Acc) Acc
- func FoldRight[X, Acc any, S ~[]X](xs S, init Acc, fn func(Acc, X) Acc) Acc
- func Map[A, B any, SA ~[]A, SB []B](xs SA, fn func(A) B) (ys SB)
- func Merge[T any, S ~[]T](a, b S, lt func(a, b T) bool) (out S)
- func ParMap[X, Y any, SX ~[]X](xs SX, fn func(X) (Y, error)) ([]Y, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DedupSorted ¶
func DedupSorted[T comparable, S ~[]T](xs S) S
DedupSorted removes duplicate items according to eq It doesn't actually matter how the items are sorted as long as items which could be the same are adjacent.
func DedupSortedFunc ¶
DedupSortedFunc removes duplicate items according to eq It doesn't actually matter how the items are sorted as long as items which could be the same are adjacent.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.