Skip to content

clojure.core.logic.fd/in

View this page on ClojureDocs

Type: macro Added: Clojure unknown Examples: 2 Runnable: 0
([& xs-and-dom])

Assign vars to domain. The domain must come last.

Examples

by jngbng on . May have evaluation errors.
by zackteo on . May have evaluation errors.

Note by port19x

If you're looking to do simple membership tests, such a function isn't builtin

(defn in? [xs el] (some #(= % el) xs))

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.