CrossClj

1.9.2-alpha4 docs

SourceDocs



RECENT
    VARS
    apply-pairwise
    def-many-methods
    function-name
    macro-for
    map-first
    name-object
    named-function?
    object-name
    ordered-zipmap
    pop-docstring
    pop-if
    pop-opts-map
    rotations
    sort-map
    stringlike-matches?

    « Index of all namespaces of this project

    Functions that are somewhat general purpose.
    
    (apply-pairwise functions & arglists)
    (apply-pairwise [inc dec] [1 1] [2 2]) => [ [2 0] [3 1] ]
    Note that the functions must take only a single argument.
    macro
    (def-many-methods name dispatch-vals args & body)
    Create multiple multimethods with different dispatch values
    but the same implementation
    (function-name funobj)
    macro
    (macro-for bindings body)
    Macroexpands the body once for each of the elements in the
    right-side argument of the bindings, which should be a seq
    (map-first f x)
    Like map, but applies f to only the first element of the seq
    
    (name-object object name)
    (named-function? x)
    (object-name obj)
    (ordered-zipmap keys vals)
    (pop-if pred args)
    Extracts optional arg (that we assume is present if the pred is true) from head of args
    
    (rotations coll)
    Returns a lazy seq of all rotations of a seq
    
    (stringlike-matches? stringlike given)