Skip to content

Latest commit

 

History

History
52 lines (31 loc) · 1.42 KB

README.md

File metadata and controls

52 lines (31 loc) · 1.42 KB

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.