CrossClj

0.26.1 docs

SourceDocs



RECENT
    VARS
    deep-merge
    extract-parameters
    java-invoke
    plain-map?
    record-schema
    remove-empty-keys
    title
    titled
    update-in-or-remove-key
    value-of

    « Index of all namespaces of this project

    (deep-merge strategy & values)(deep-merge values)
    Recursively merges maps.
    If the first parameter is a keyword it tells the strategy to
    use when merging non-map collections. Options are
    - :replace, the default, the last value is used
    - :into, if the value in every map is a collection they are concatenated
      using into. Thus the type of (first) value is maintained.
    (extract-parameters c)
    Extract parameters from head of the list. Parameters can be:
    
    1. a map (if followed by any form) `[{:a 1 :b 2} :body]` => `{:a 1 :b 2}`
    2. list of keywords & values `[:a 1 :b 2 :body]` => `{:a 1 :b 2}`
    3. else => {}
    
    Returns a tuple with parameters and body without the parameters
    (java-invoke class-name method-name object)
    Invokes a Java object method via reflection 
    
    (plain-map? x)
    checks whether input is a map, but not a record
    
    (record-schema x)
    (remove-empty-keys m)
    Removes empty properties with nil value from a map
    
    (update-in-or-remove-key m ks f)(update-in-or-remove-key m ks f iff)
    (value-of x)
    Extracts value of for var, symbol or returns itself