/** * Finds the item with key if it exists. * * @tsplus static RedBlackTree.Aspects has * @tsplus pipeable RedBlackTree has */ export function has(key: K) { return (self: RedBlackTree): boolean => self.findFirst(key).isSome() }