CrossClj

0.7.0 docs

SourceDocs



RECENT
    VARS
    ->Maybe
    ->OptionalKey
    ->Or
    ->RequiredKey
    -coll-spec
    -map-spec
    -or-spec
    coll-of-spec
    keys-spec
    map->Maybe
    map->OptionalKey
    map->Or
    map->RequiredKey
    map-of-spec
    maybe
    maybe?
    nested-key
    nilable-spec
    opt
    opt?
    or
    or-spec
    or?
    req
    req?
    spec
    unwrap-key
    wrapped-key?

    « Index of all namespaces of this project

    Data Specs
    
    (->Maybe v)
    Positional factory function for class spec_tools.data_spec.Maybe.
    
    (->OptionalKey k)
    Positional factory function for class spec_tools.data_spec.OptionalKey.
    
    (->Or v)
    Positional factory function for class spec_tools.data_spec.Or.
    
    (->RequiredKey k)
    Positional factory function for class spec_tools.data_spec.RequiredKey.
    
    Private
    (-coll-spec data {n :name, kind :kind})
    Private
    (-map-spec data {n :name, :keys [keys-spec keys-default], :or {keys-spec keys-spec}, :as opts})
    Private
    (-or-spec n v)
    Private
    (coll-of-spec pred type)
    Private
    (keys-spec {:keys [req opt req-un opt-un]})
    (map->Maybe m__7585__auto__)
    Factory function for class spec_tools.data_spec.Maybe, taking a map of keywords to field values.
    
    (map->OptionalKey m__7585__auto__)
    Factory function for class spec_tools.data_spec.OptionalKey, taking a map of keywords to field values.
    
    (map->Or m__7585__auto__)
    Factory function for class spec_tools.data_spec.Or, taking a map of keywords to field values.
    
    (map->RequiredKey m__7585__auto__)
    Factory function for class spec_tools.data_spec.RequiredKey, taking a map of keywords to field values.
    
    Private
    (map-of-spec kpred vpred)
    (nested-key n k)
    Private
    (nilable-spec pred)
    Private
    (or-spec v)
    (spec {data :spec, name :name, :as opts})(spec name data)
    Creates a clojure.spec.alpha/Spec out of a data-spec. Supports 2 arities:
    
       ;; arity1
       (ds/spec
         {:spec {:i int?}
          :name ::map})
    
       ;; arity2 (legacy)
       (ds/spec ::map {:i int?})
    
    The following options are valid for the 1 arity case:
    
                 :spec the data-spec form (required)
                 :name fully qualified keyword name for the spec, used in keys-spec
                       key spec registration, required if there are non-qualified
                       keyword keys in maps.
            :keys-spec function to generate keys-spec (default: [[keys-spec]])
         :keys-default optional function to wrap the plain keyword keys, e.g. setting
                       the value to [[opt]] maes all plain keyword keys optional.
    (wrapped-key? x)