CrossClj

0.2.1 docs

SourceDocs



RECENT
    VARS
    absent?
    contains-in?
    email?
    in-range?
    number
    parse-decimal-number
    regex-match?
    within?

    « Index of all namespaces of this project

    (absent? rules value)
    Method that is used to determine if the value is absent in
    some way.  Rules should be a set.  The possible values of the
    set are:
    
    * :nil - return true if the value is nil
    * :blank - return true if the value is an empty string
    * :missing - return true if the value is :arianna/missing
    
    The last, :missing checks for the special value
    :arianna/missing returned by as-key
    when it fails to find the key.
    (contains-in? coll key)
    The equivalent of contains? for vectors.  The counterpart
    of get-in and get.  Normally you won't want to call it
    directly, but v/has uses it.
    (email? v)
    Returns true if v is an email address.
    
    (in-range? min-incl max-excl value)
    Method that checks if its value is numeric
    and is between min, inclusive, and max, exclusive.
    (number s)
    Transform method that tries to convert s to a number.
    Returns nil on failure.
    (parse-decimal-number s)
    Reads a number from a string. Returns nil if not a number.
    
    (regex-match? regex v)
    Returns true if the string v matches the given regular
    expression.
    (within? min-incl max-incl value)
    Method that checks if its value is between
    min-incl and max-incl, both inclusive. Uses
    clojure.core/compare to compare values.