CrossClj

1.2.0 docs

SourceDocs



RECENT
    VARS
    ancestors
    auto
    auto?
    children
    children-auto
    descendants
    fixup-apply
    left-locs
    leftmost?
    mapcat-chain
    right-locs
    rightmost?

    « Index of all namespaces of this project

    System for filtering trees and nodes generated by zip.clj in
    general, and xml trees in particular.

    — Chris Houser

    (ancestors loc)
    Returns a lazy sequence of all ancestors of location loc, starting
    with loc and proceeding to loc's parent node and on through to the
    root of the tree.
    (children loc)
    Returns a lazy sequence of all immediate children of location loc,
    left-to-right.
    (children-auto loc)
    Returns a lazy sequence of all immediate children of location loc,
    left-to-right, marked so that a following tag= predicate will auto-descend.
    (descendants loc)
    Returns a lazy sequence of all descendants of location loc, in
    depth-first order, left-to-right, starting with loc.
    Private
    (fixup-apply pred loc)
    Calls (pred loc), and then converts the result to the 'appropriate'
    sequence.
    (left-locs loc)
    Returns a lazy sequence of locations to the left of loc, starting with loc.
    
    (leftmost? loc)
    Returns true if there are no more nodes to the left of location loc.
    
    (mapcat-chain loc preds mkpred)
    (right-locs loc)
    Returns a lazy sequence of locations to the right of loc, starting with loc.
    
    (rightmost? loc)
    Returns true if there are no more nodes to the right of location loc.