CrossClj

0.1.1 docs

SourceDocs



RECENT
    VARS
    *trace-datalog*
    is-query-var?
    is-var?
    keys-to-vals
    map-values
    preduce
    reverse-map
    separate
    trace-datalog

    « Index of all namespaces of this project

    (is-query-var? sym)
    Is this a query variable: e.g. a symbol prefixed with ??
    
    (is-var? sym)
    Is this a logic variable: e.g. a symbol prefixed with a ?
    
    (keys-to-vals m ks)
    Given a map and a collection of keys, return the collection of vals
    
    (map-values f hash)
    Like map, but works over the values of a hash map
    
    (preduce f data)
    Similar to merge-with, but the contents of each key are merged in
    parallel using f.
    
    f - a function of 2 arguments.
    data - a collection of hashes.
    (reverse-map m)
    Reverse the keys/values of a map
    
    (separate f s)
    Returns a vector:
    [ (filter f s), (filter (complement f) s) ]
    macro
    (trace-datalog & body)
    If *test-datalog* is set to true, run the enclosed commands