-
Notifications
You must be signed in to change notification settings - Fork 0
API Set
unique : [a] -> [a]
xs
: Array
return
: Array
Removes duplicate elements from xs
.
uniqueBy : (a -> a -> Boolean) -> [a] -> [a]
eq
: Function
xs
: Array
return
: Array
Like tlc.unique
but lets you specify a custom equality function eq
.
union : [a] -> [a] -> [a]
xs
: Array
ys
: Array
return
: Array
Returns an array combining elements of xs
and ys
but removing duplicates.
unionBy : (a -> a -> Boolean) -> [a] -> [a] -> [a]
eq
: Function
xs
: Array
ys
: Array
return
: Array
Like tlc.union
but lets you specify a custom equality function eq
.
intersect : [a] -> [a] -> [a]
xs
: Array
ys
: Array
return
: Array
Returns and array with the elements that are in both xs
and ys
.
intersectBy : (a -> a -> Boolean) -> [a] -> [a] -> [a]
eq
: Function
xs
: Array
ys
: Array
return
: Array
Like tlc.intersect
but lets you specify a custom equality function eq
.