CrossClj

1.1.44 docs

SourceDocs



RECENT
    VARS
    arity
    as-file
    assoc*
    attr-accessor
    attr=
    attrp
    best
    best-by
    children
    conj*
    CRLF
    deferrable?
    disjoint*?
    dissoc*
    expand
    get*
    get-host-origin
    http-token
    md5-hash
    merge*
    merge-parameters
    OWS
    parse-csv
    remove-empty-vals
    replace-set-key
    same-origin?
    tag=
    tagp
    text

    « Index of all namespaces of this project

    (as-file resource)
    (assoc* map key val)(assoc* map key val & kvs)
    Like assoc but the keys can be sets and the wildcard '*' 
    
    (attr-accessor a)
    (attrp a pred)
    (best coll)(best comp coll)
    Pick the best item from a collection. Since we are only interested in
    the best, we can avoid sorting the entire collection, which could be
    inefficient with large collections. The best element is selected by
    comparing items. An optional comparator can be given.
    (best-by keyfn coll)(best-by keyfn comp coll)
    Pick the best item from a collection. Since we are only interested in
    the best, we can avoid sorting the entire collection, which could be
    inefficient with large collections. The best element is selected by
    applying the function given by keyfn to each item and comparing the
    result. An optional comparator can be given. The implementation uses a
    pair to keep hold of the result of applying the keyfn function, to
    avoid the redundancy of calling keyfn unnecessarily.
    (conj* map)(conj* map o)(conj* map x & xs)
    (deferrable? o)
    An alternative version of deferrable that discounts
    ReadPort. Otherwise, core.async channels are considered as streams
    rather than values, which isn't what we want.
    (disjoint*? m)
    Checks that map keys are disjoint. Meaning a given key matches only one mapping in the map.
    
    (dissoc* map key)(dissoc* map key & ks)
    Like dissoc but keys can be sets and the wildcard '*' and it will
    ensure that the returned map does not contain a mapping for key when
    calling get* with the exception of the wildcard.
    
    A few examples:
    (dissoc* {200 :a #{400 401} :b * :c} 200) => {#{400 401} :b * :c}
    (dissoc* {200 :a #{400 401} :b * :c} 400) => {200 :a 401 :b * :c}
    (dissoc* {200 :a #{400 401} :b * :c} #{200 401}) => {400 :b * :c}
    (expand map)
    Expands the set keys and returns a map
    (expand {#{200 300} :test}) => {200 :test 300 :test}
    (get* m k)
    Like get, but keys can be sets and the wildcard '*'
    
    (get-host-origin req)
    (merge* & maps)
    Returns a map that consists of the rest of the maps conj-ed onto
    the first using conj*.  If a key occurs in more than one map, the mapping from
    the latter (left-to-right) will be the mapping in the result.
    (merge-parameters resource-params method-params)
    Merge parameters such that method parameters override resource
    parameters, and that parameter schemas (except for the single body
    parameter) are combined with merge.
    (remove-empty-vals m)
    Private
    (replace-set-key map old-key new-key val)
    (same-origin? req)
    (tagp pred)