Node.opApply

Foreach over a sequence, getting each element as T.

If T is Node, simply iterate over the nodes in the sequence. Otherwise, convert each node to T during iteration.

  1. int opApply(int delegate(ref T) dg)
    struct Node
    int
    opApply
    @trusted
    (
    T
    )
    (
    int delegate(
    ref T
    )
    dg
    )
  2. int opApply(int delegate(ref K, ref V) dg)

Throws

NodeException if the node is not a sequence or an element could not be converted to specified type.

Meta