ClojureDocs

Nav

Namespaces

defnc

  • (defnc name args & body)
No Doc
1 Example
;; I'm not exactly sure what `defnc` is, but I know a little how to use it
;; The following gets all multiples of 3 in the `(range 50)`

(defnc dev3c [x]
  (zero? (mod x 3)))

(run* [x]
  (membero x (range 50))
  (dev3c x))
See Also

Define a committed choice goal. See condu.

Added by freckletonj

Define a soft cut goal. See conda.

Added by freckletonj

Define a goal fn. Supports pattern matching. All patterns will be tried. See conde.

Added by freckletonj

Define an anonymous constraint that can be used with the unifier: (let [oddc (fnc [x] (odd? x)...

Added by svdo
0 Notes
No notes for defnc