BinaryTree

object BinaryTree
Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def draw[A](tree: BinaryTree[A], show: A => String): String

Converts a tree into an ASCII-art picture of the tree.

Converts a tree into an ASCII-art picture of the tree.

Value parameters:
show

function that renders an A as a string

tree

the tree to be drawn

Givens

Givens

given TestableBinaryTree[A](using TA: Testable[A]): Testable[BinaryTree[A]]

Testable instance for binary trees.

Testable instance for binary trees.

When appropriate, the trees are displayed in an ASCII-art pictorial format.