bsmr / guregu---predicates

various predicates for ichiban/prolog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

various predicates for ichiban/prolog

License:Other


Languages

Language:Go 99.6%Language:Prolog 0.4%