Node

com.phasmidsoftware.lascala.tree.Node
See theNode companion trait
object Node

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Node.type

Members list

Givens

Givens

given nodeRenderable: [A, N <: (Node)] => Renderable[A] => Renderable[N[A]]

Renders a node of any kind (a Leaf, a Tree, etc.) whose values have a Renderable instance. A leaf renders as its value; a branch renders as its value (if any), "--", and its children.

Renders a node of any kind (a Leaf, a Tree, etc.) whose values have a Renderable instance. A leaf renders as its value; a branch renders as its value (if any), "--", and its children.

Attributes

Implicits

Implicits

implicit def nodeParent[A]: Parent[Node[A]]

Implicit definition of a Parent for the (type-parameterized, i.e. generic) type Node[A]

Implicit definition of a Parent for the (type-parameterized, i.e. generic) type Node[A]

Type parameters

A

the underlying node type

Attributes

Returns

a Parent of type Node[A]