MCPcopy
hub / github.com/google/mangle / NewClause

Function NewClause

ast/ast.go:1308–1310  ·  view source on GitHub ↗

NewClause constructs a new clause.

(head Atom, premises []Term)

Source from the content-addressed store, hash-verified

1306
1307// NewClause constructs a new clause.
1308func NewClause(head Atom, premises []Term) Clause {
1309 return Clause{head, nil, premises, nil}
1310}
1311
1312// NewTemporalClause constructs a new clause with a temporal annotation.
1313func NewTemporalClause(head Atom, headTime *Interval, premises []Term) Clause {

Callers 10

TestMergeFunction · 0.92
TestClausesFunction · 0.92
TestClausesErrorsFunction · 0.92
TestExtractFunction · 0.92
makeSingleDeltaRuleFunction · 0.92
TestMakeDeltaRulesFunction · 0.92
TestParseUnitPositiveFunction · 0.92
TestParseClausePositiveFunction · 0.92
VisitClauseBodyMethod · 0.92
TestReplaceWildcardsFunction · 0.85

Calls

no outgoing calls

Tested by 8

TestMergeFunction · 0.74
TestClausesFunction · 0.74
TestClausesErrorsFunction · 0.74
TestExtractFunction · 0.74
TestMakeDeltaRulesFunction · 0.74
TestParseUnitPositiveFunction · 0.74
TestParseClausePositiveFunction · 0.74
TestReplaceWildcardsFunction · 0.68