:: Ord a => [a] -> [a] is:exact -package:imports -package:incipit-base -package:integration -package:errors -package:amazonka-core -package:base -package:base-prelude -package:Cabal-syntax -package:ghc -package:containers -package:extra -package:hedgehog

Like nub, but has O(n log n) complexity instead of O(n^2). Code for ordNub and listUnion taken from Niklas Hambüchen's ordnub package.
A right-biased version of ordNub. Example:
>>> ordNub [1,2,1] :: [Int]
[1,2]
>>> ordNubRight [1,2,1] :: [Int]
[2,1]
A total variant of tail.
A total variant of init.
Identical to tail, namely that fails on an empty list. Useful to avoid the x-partial warning introduced in GHC 9.8.
tailErr [] = error "Prelude.tail: empty list"
tailErr [1,2,3] = [2,3]
tailSafe [] = []
tailSafe [1,3,4] = [3,4]
Sort a vector.
The nub function which removes duplicate elements from a vector.
Sort a vector.
Removes duplicate elements from a list, keeping only the first occurrence. This is asymptotically faster than using nub from Data.List.
>>> ordNub [3,2,1,3,2,1]
[3,2,1]
Generalized version of runInBoundThread.
Generalized version of runInUnboundThread.
Generalized version of mask_.
Generalized version of uninterruptibleMask_.
all nodes of a tree
O(n) Convert a vector to a list.
Take a parser that may consume input, and on failure, go back to where we started and fail as if we didn't consume input.