Skip to content

Provides generalized versions of common Prolog predicates using constraints to make them more flexible and declarative.

License

Notifications You must be signed in to change notification settings

bakaq/constrained.pl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

constrained.pl

A Prolog library (primary for Scryer Prolog) that aims to generalize common Prolog predicates using constaints so that they are more flexible and declarative.

Currently offers functor_c/3, #=../2 and length_c/2, which are constraint versions of functor/3, =../2 and length/2 respectively. They work in all directions, including the most general case where all arguments are variables, ensure consistency, and delay the instantiation of their arguments. Reified versions of these predicates are also provided for use with library(reif).

About

Provides generalized versions of common Prolog predicates using constraints to make them more flexible and declarative.

Topics

Resources

License

Stars

Watchers

Forks

Languages