GithubHelp home page GithubHelp logo

isabella232 / core.unify Goto Github PK

View Code? Open in Web Editor NEW

This project forked from clojure/core.unify

0.0 0.0 0.0 119 KB

Unification library

License: Eclipse Public License 1.0

Shell 0.34% Clojure 58.47% HTML 41.18%

core.unify's Introduction

clojure.core.unify

core.unify is a Clojure 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 http://github.com/fogus/unifycle that has been deprecated.

more information

Differences from core.logic

core.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 Information

Latest stable release: 0.5.7

CLI/deps.edn dependency information:

org.clojure/core.unify {:mvn/version "0.5.7"}

Leiningen dependency information:

[org.clojure/core.unify "0.5.7"]

Maven dependency information:

<dependency>
  <groupId>org.clojure</groupId>
  <artifactId>core.unify</artifactId>
  <version>0.5.7</version>
</dependency>

Example Usage

    (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.

Developer Information

Change Log

  • Release 0.5.7 on 2016.07.25
    • Fixed macro that produced invalid fn names
  • Release 0.5.6 on 2013.03.07
    • Removed nil bindings
  • Release 0.5.5 on 2013.01.25
    • Exposed lvar? function
    • Added extract-lvars function
    • Exposed flatten-bindings function
  • Release 0.5.4 on 2013.01.24
    • Added 3-arg version of unify and unify- allowing an additional environment map.
  • Release 0.5.3 on 2012.05.25
    • Added variable? function
    • Unification of seqs of differing lengths fails (as expected)
  • Release 0.5.2 on 2012.01.08
    • Removed reflection warnings
  • Release 0.5.1 on 2011.10.11
    • Rolled in basis of Unifycle

Copyright and License

Copyright (c) Rich Hickey and Michael Fogus, 2012. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) 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.

core.unify's People

Contributors

fogus avatar puredanger avatar seancorfield avatar abedra avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.