CrossClj

1.9.2-alpha4 docs

SourceDocs



RECENT
    VARS
    attractively-stringified-value
    emit-lines
    emit-one-line
    failure-notice
    filename-lineno
    format-binding-map
    format-nested-descriptions
    function-name
    grouped-comparables-and-uncomparables
    indented
    last-piece-of-ns-qualified-class-name
    linearize-lines
    map-keys
    nested-sort
    position-str
    prerequisite-var-description
    safe-sort
    sorted-if-appropriate

    « Index of all namespaces of this project

    General purpose plugin utilities
    
    (attractively-stringified-value v)
    Does some standard prettification of forms:
    : a function named foo
    : a nicely printed stack trace
    : maps and sets sorted by key.
    (emit-lines lines)
    (failure-notice m)
    The reader's eye is guided by a bright red FAIL, the filename and lineno, and
    perhaps this other information:
      : the descriptions of all enclosing facts, if any
      : notes on which bindings were supplied to a tabular fact
    (filename-lineno [filename line-num])
    The ordinary way to describe the location of a failure.
    
    Private
    (format-binding-map binding-map)
    (format-nested-descriptions nested-description-vector)
    Takes vector like ["about cars" nil "sports cars are fast"] and returns non-nils joined with -'s
    => "about cars - sports cars are fast"
    (function-name function)
    Convert a function into a readable name, if possible.
    
    Private
    (grouped-comparables-and-uncomparables xs)
    (indented lines)
    Private
    (last-piece-of-ns-qualified-class-name clazz)
    (linearize-lines messy-lines)
    Takes a nested structure that contains nils and strings.
    Converts it into a simple sequence of strings.
    Private
    (map-keys f m)
    (nested-sort x)
    Sorts two nested collections for easy visual comparison.
    Sets and maps are converted to order-sets and ordered-maps.
    (position-str [filename line-num] namespace)
    Describe a failure with optional namespace
    
    (prerequisite-var-description prerequisite-var)
    Takes a var naming a prerequisite and returns a string useful for printing
    
    Private
    (safe-sort xs)
    Attempts sorting input but defaults returning the list unsorted when
    elements are heterogeneous, and hence unsortable