core.unify is a Clojure & ClojureScript contrib library providing the following features:
Factory functions for constructing unification binding, subst, and unification functions, with or without occurs checking
Packaged functions for unification binding, subst, and unification functions, with or without occurs checking, recognizing variables tagged as symbols prefixed with ?
characters
core.unify is based on a library named Unifycle, found at https://github.com/fogus/unifycle that has been deprecated.
Differences from core.logiccore.unify provides a la carte unification facilities that are not deeply tied into the operation of a logic engine. While core.logic does provide a similar simple unifier interface with support for specifying fine-grained constraints, if you have no need for a logic programming system, core.unify may be a better fit.
Releases and Dependency InformationLatest stable release: 0.7.0
CLI/deps.edn
dependency information:
org.clojure/core.unify {:mvn/version "0.7.0"}
Leiningen dependency information:
[org.clojure/core.unify "0.7.0"]
Maven dependency information:
<dependency>
<groupId>org.clojure</groupId>
<artifactId>core.unify</artifactId>
<version>0.7.0</version>
</dependency>
(use 'clojure.core.unify) (unifier '((?a * ?x ** 2) + (?b * ?x) + ?c) '(?z + (4 * 5) + 3)) ;=> ((?a * 5 ** 2) + (4 * 5) + 3)
Refer to docstrings in the clojure.core.unify
namespace.
lvar?
functionextract-lvars
functionflatten-bindings
functionunify
and unify-
allowing an additional environment map.variable?
functionCopyright (c) Rich Hickey and Michael Fogus. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (https://opensource.org/license/epl-1-0/) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound bythe terms of this license. You must not remove this notice, or any other, from this software.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4