Skip to content

guregu/predicates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

predicates GoDoc

import "github.com/guregu/predicates"

Native predicates for ichiban/prolog.

Prolog

Filesystem predicates use io/fs.FS.

Built-in replacements

  • consult/1

library(files)

These predicates are intended to be compatible with Scryer Prolog's library(files). These use strings (lists of characters) for filenames.

  • directory_files/2
  • directory_exists/1
  • file_exists/1

Lists

  • is_list/1
  • atomic_list_concat/3

Atoms

  • downcase_atom/2
  • upcase_atom/2

Package taujson

These predicates are intended to be compatible with Tau Prolog's library(js). They are peculiar predicates that use opaque native objects for JSON conversion.

  • json_atom/2
  • json_prolog/2

Graduated

  • between/3 made it into ichiban/prolog in v0.9.0!

Go

Package chars provides some convenience functions for working with Prolog strings.

License

BSD 2-clause. Includes code from ichiban/prolog (MIT license). See LICENSE.