CrossClj

0.1.4 docs

SourceDocs



RECENT
    VARS
    children?
    filter
    find
    find-parent
    fmap
    keep
    last
    map
    map-children
    node-prewalk
    postwalk
    postwalk!
    prewalk
    prewalk!
    root-loc
    root?
    singular?
    smap

    « Index of all namespaces of this project

    (children? loc)
    (filter pred loc)
    A sequence of all locs that satisfy pred
    
    (find pred loc)
    Depth first search for loc that satisfies (pred node), or nil.
    
    (find-parent pred loc)
    Ancestor traversal for loc that satisfies (pred node), or nil
    
    (fmap f loc)
    (keep f loc)
    A sequence of all non-nil results of (f loc)
    
    (last loc)
    Returns the loc of the node immediately preceding the end node
    
    (map f loc)
    (map-children f loc)
    (node-prewalk loc f & args)
    Prewalk traversal over loc, applying f to each node (with arguments)
    
    (postwalk loc f & args)
    f is a function that must take one+ argument, a loc then return it
    (potentially modifying the node)
    (postwalk! loc f & args)
    Postorder traversal of a loc structure for side-effects
    
    (prewalk loc f & args)
    (prewalk! loc f & args)
    (root-loc loc)
    (singular? loc)
    true if the loc has no siblings
    
    (smap f loc)
    Maps over the siblings (inclusive) of loc