BinaryTree overview
Added in v0.1.0
Table of contents
utils
BinaryTree (type alias)
Signature
export type BinaryTree<A> =
| {
readonly type: 'Leaf'
}
| {
readonly type: 'Node'
readonly left: BinaryTree<A>
readonly value: A
readonly right: BinaryTree<A>
}
Added in v0.1.0
URI
Signature
export declare const URI: 'BinaryTree'
Added in v0.1.0
URI (type alias)
Signature
export type URI = typeof URI
Added in v0.1.0
binaryTree
Signature
export declare const binaryTree: Foldable1<'BinaryTree'>
Added in v0.1.0
getEq
Signature
export declare const getEq: <A>(eqa: Eq<A>) => Eq<BinaryTree<A>>
Added in v0.1.0
getOrd
Signature
export declare const getOrd: <A>(ord: Ord<A>) => Ord<BinaryTree<A>>
Added in v0.1.0
getSet
Signature
export declare const getSet: <A>(ord: Ord<A>) => PSet<'BinaryTree', A>
Added in v0.1.0
leaf
Signature
export declare const leaf: { readonly type: 'Leaf' }
Added in v0.1.0
node
Signature
export declare const node: <A>(left: BinaryTree<A>, value: A, right: BinaryTree<A>) => BinaryTree<A>
Added in v0.1.0