hwtest.binarytrees

Type members

Classlikes

enum BinaryTree[+A]

An enum for binary trees with an element at each node.

An enum for binary trees with an element at each node.

Example: Node(1, Node(2, Empty, Empty), Empty)

The Node and Empty constructors are exported so they can be referred with or without the BinaryTree. prefix, as in BinaryTree.Node.

Companion:
object
object BinaryTree
Companion:
class

Exports

Defined exports

final type Node = Node
Exported from BinaryTree$