CrossClj

0.1.5 docs

SourceDocs



RECENT
    VARS
    =>
    and>
    default>
    eq>
    es>
    filter>
    format>
    gt>
    gte>
    if>
    lt>
    lte>
    map>
    nil-string
    not-eq>
    or>
    p>
    reduce1>
    reduce2>
    str>
    to-transitive
    to-val
    trans-vals
    when>

    « Index of all namespaces of this project

    Functions that combine with transitives for more powerful data
    transformations
    (=> & fs)
    Like the threading macro, some->, this threads data through successive
    functions as long as the result is not nil.
    (and> & ts)
    A transitive form of and where ts is any number of transitives. Outputs all
    the nested values when successful.
    (default> default & ts)
    Similar to or>, it takes some transitives ts and returns
    the first matching one. If none are found then it returns
    the default value.
    (eq> x-expr y-expr)
    A transative form of=where both arguments are transitive
    expressions
    (es> & exprs)
    Escapes expressions from being evaluated by a transitive
    
    ((<=> {:foo (es> [:bar :baz])
     {:bar 10})
    
    => {:foo [:bar :baz]}
    (filter> pred & exprs)
    A transitive form of filter where exprs are collections of transitive
    expressions.
    (format> s & ks)
    A transitive that formats a string with transitive keyword
    arguments. Any unmatched transitive keywords will be converted
    to empty strings.
    
    example:
    ((format> "%s.%s" :one :two)
     {:one "foo" :two "bar"})
    
    => "foo.bar"
    (gt> x-expr y-expr)
    A transative form of>where both arguments are transitive
    expressions
    (gte> x-expr y-expr)
    A transative form of>=where both arguments are transitive
    expressions
    (if> pred then)(if> pred then else)
    Like if but for transitives. Takes a predicate and returns the then
    or else clause.
    (lt> x-expr y-expr)
    A transative form of<where both arguments are transitive
    expressions
    (lte> x-expr y-expr)
    A transative form of<=where both arguments are transitive
    expressions
    (map> f & exprs)
    Private
    (nil-string & coll)
    (not-eq> x-expr y-expr)
    A transative form ofnot=where both arguments are transitive
    expressions
    (or> & ts)
    A transitive form of or where ts is any number of transitives.
    
    An alias for clojure.core/partial
    
    (reduce1> f & exprs)
    A transitive form of reduce where exprs are collections of transitive
    expressions. Here's an example:
    
    ((reduce1> + [:foo :foo :bar] [:foo]) {:foo 1})
    
    => 3
    (reduce2> f seed & exprs)
    A transitive form of reduce that uses an initial seed value.
    
    (str> & ks)
    A transitive version of str that can take transitive keywords
    and strings to compose a larger string.
    Private
    (to-transitive exprs)
    Private
    (to-val exprs m)
    Private
    (trans-vals exprs m)
    (when> pred then)
    A transitive form of when. Takes a predicate and returns the
    transitive clause when successful.