(= l__2007__auto__)
(= l__2007__auto__ r__2008__auto__)
Curried version of #'clojure.core/=
Curried version of #'clojure.core/=
(== l__2007__auto__)
(== l__2007__auto__ r__2008__auto__)
Curried version of #'clojure.core/==
Curried version of #'clojure.core/==
(defconstrainedfn name & body)
Defines a function using the contract
vector appearing after the arguments.
(defconstrainedfn sqr
[n] [number? (not= 0 n) => pos? number?]
(* n n))
Like the contract
macro, multiple arity functions can be defined where each argument vector
is immediately followed by the relevent arity expectations. This macro will also detect
if a map is in that constraints position and use that instead under the assumption that
Clojure's :pre
/:post
map is used instead.
Defines a function using the `contract` vector appearing after the arguments. (defconstrainedfn sqr [n] [number? (not= 0 n) => pos? number?] (* n n)) Like the `contract` macro, multiple arity functions can be defined where each argument vector is immediately followed by the relevent arity expectations. This macro will also detect if a map is in that constraints position and use that instead under the assumption that Clojure's `:pre`/`:post` map is used instead.
(defconstrainedrecord name slots inv-description invariants & etc)
(in e & args)
Takes an item and determines if it falls in the listed args. This can be
used most effectively for numbers since any numbers in a vector represent
a range of values determined by the same arguments as given to range
.
Takes an item and determines if it falls in the listed args. This can be used most effectively for numbers since any numbers in a vector represent a range of values determined by the same arguments as given to `range`.
(not= l__2007__auto__)
(not= l__2007__auto__ r__2008__auto__)
Curried version of #'clojure.core/not=
Curried version of #'clojure.core/not=
(whitelist wl things)
Takes a thing with keys (i.e. maps or sets) and checks if it contains only the keys listed in the given whitelist.
Takes a thing with keys (i.e. maps or sets) and checks if it contains only the keys listed in the given whitelist.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close