prelude

package
v0.0.0-...-a28e2a2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2017 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Defines the Prolog standard library. All prelude predicates are implemented in pure Prolog. Each variable in this package is a predicate definition. At init time, they're combined into a single string in the Prelude var.

Index

Constants

This section is empty.

Variables

View Source
var Ignore1 = `
ignore(A) :-
	call(A),
	!.
ignore(_).
`
View Source
var Length2 = `` /* 130-byte string literal not displayed */
View Source
var Memberchk2 = `
memberchk(X,[X|_]) :- !.
memberchk(X,[_|T]) :-
    memberchk(X,T).
`
View Source
var Phrase2 = `
phrase(Dcg, List) :-
    call(Dcg, List, []).
`

phrase(:DCGBody, ?List) is nondet.

Like phrase(DCG,List,[]).

View Source
var Phrase3 = `
phrase(Dcg, Head, Tail) :-
    call(Dcg, Head, Tail).
`

phrase(:DCGBody, ?List, ?Rest) is nondet.

True when DCGBody applies to the difference List/Rest.

View Source
var Prelude string

After init(), Prelude contains all prelude predicates combined into a single large string. One rarely addresses this variable directly because golog.NewMachine() does it for you.

View Source
var Sort2 = `` /* 362-byte string literal not displayed */

sort(+List, -Sorted) is det.

Like msort/2 but removes duplicates.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL