(contains x & modifiers)
checker for maps and vectors
((contains {:a odd? :b even?}) {:a 1 :b 4}) => true
((contains {:a 1 :b even?}) {:a 2 :b 4}) => false
((contains [1 2 3]) [1 2 3 4]) => true
((contains [1 3]) [1 2 3 4]) => false
checker for maps and vectors ((contains {:a odd? :b even?}) {:a 1 :b 4}) => true ((contains {:a 1 :b even?}) {:a 2 :b 4}) => false ((contains [1 2 3]) [1 2 3 4]) => true ((contains [1 3]) [1 2 3 4]) => false
(contains-in x)
shorthand for checking nested maps and vectors
((contains-in {:a {:b {:c odd?}}}) {:a {:b {:c 1 :d 2}}}) => true
((contains-in [odd? {:a {:b even?}}]) [3 {:a {:b 4 :c 5}}]) => true
shorthand for checking nested maps and vectors ((contains-in {:a {:b {:c odd?}}}) {:a {:b {:c 1 :d 2}}}) => true ((contains-in [odd? {:a {:b even?}}]) [3 {:a {:b 4 :c 5}}]) => true
(contains-map x)
map check helper function for contains
map check helper function for `contains`
(contains-set x)
set check helper function for contains
((contains-set #{1 2 3}) [1 2 3 4 5]) => true
((contains-set #{1 2 4}) [1 2 3 4 5]) => false
set check helper function for `contains` ((contains-set #{1 2 3}) [1 2 3 4 5]) => true ((contains-set #{1 2 4}) [1 2 3 4 5]) => false
(contains-vector x)
(contains-vector x modifiers)
vector check helper function for contains
vector check helper function for `contains`
(just x & modifiers)
combination checker for both maps and vectors
((just {:a odd? :b even?}) {:a 1 :b 4}) => true
((just {:a 1 :b even?}) {:a 1 :b 2 :c 3}) => false
((just [1 2 3 4]) [1 2 3 4]) => true
((just [1 2 3]) [1 2 3 4]) => false
((just [3 2 4 1] :in-any-order) [1 2 3 4]) => true
combination checker for both maps and vectors ((just {:a odd? :b even?}) {:a 1 :b 4}) => true ((just {:a 1 :b even?}) {:a 1 :b 2 :c 3}) => false ((just [1 2 3 4]) [1 2 3 4]) => true ((just [1 2 3]) [1 2 3 4]) => false ((just [3 2 4 1] :in-any-order) [1 2 3 4]) => true
(just-in x)
shorthand for exactly checking nested maps and vectors
((just-in {:a {:b {:c odd?}}}) {:a {:b {:c 1 :d 2}}}) => false
((just-in [odd? {:a {:b even?}}]) [3 {:a {:b 4}}])
((just-in [odd? {:a {:b even?}}]) [3 {:a {:b 4}}]) => true
shorthand for exactly checking nested maps and vectors ((just-in {:a {:b {:c odd?}}}) {:a {:b {:c 1 :d 2}}}) => false ((just-in [odd? {:a {:b even?}}]) [3 {:a {:b 4}}]) ((just-in [odd? {:a {:b even?}}]) [3 {:a {:b 4}}]) => true
(just-map x)
map check helper function for just
map check helper function for `just`
(just-set x)
set check helper function for just
((just-set #{1 2 3}) [1 2 3]) => true
set check helper function for `just` ((just-set #{1 2 3}) [1 2 3]) => true
(just-vector x)
(just-vector x modifiers)
vector check helper function for just
vector check helper function for `just`
(throws-info)
(throws-info m)
checker that determines if an ex-info
has been thrown
((throws-info {:a "hello" :b "there"}) (common/evaluate {:form '(throw (ex-info "hello" {:a "hello" :b "there"}))})) => true
checker that determines if an `ex-info` has been thrown ((throws-info {:a "hello" :b "there"}) (common/evaluate {:form '(throw (ex-info "hello" {:a "hello" :b "there"}))})) => true
(verify-map ck data)
takes two maps and determines if they fit (verify-map {:a (base/satisfies odd?) :b (base/satisfies even?)} {:a 1 :b 2}) => true
takes two maps and determines if they fit (verify-map {:a (base/satisfies odd?) :b (base/satisfies even?)} {:a 1 :b 2}) => true
(verify-seq ck data modifiers)
takes two seqs and determines if they fit (verify-seq [(base/satisfies 1) (base/satisfies 2)] [2 1] #{:in-any-order}) => true
(verify-seq [(base/satisfies 1) (base/satisfies 2)] [2 3 1] #{:in-any-order :gaps-ok}) => true
takes two seqs and determines if they fit (verify-seq [(base/satisfies 1) (base/satisfies 2)] [2 1] #{:in-any-order}) => true (verify-seq [(base/satisfies 1) (base/satisfies 2)] [2 3 1] #{:in-any-order :gaps-ok}) => true
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close