object
mutations_store
Stores mutation definitions for selected types. User extensible by defining objects or categories defining clauses for the mutation/3 predicate and using this object as a hook object for their compilation.
Availability:
logtalk_load(mutations(loader))Author: Paulo Moura
Version: 0:1:0
Date: 2023-11-23
Compilation flags:
static, context_switching_callsRemarks:
(none)
Inherited public predicates:
Public predicates
mutation/3
Returns a random mutation of a term into another term of the same type. The input Term is assumed to be valid for the given Type.
Compilation flags:
staticTemplate:
mutation(Type,Term,Mutation)Mode and number of proofs:
mutation(@callable,@term,-term) - onecounter/2
Table of the number of mutations available per type.
Compilation flags:
staticTemplate:
counter(Type,N)Mode and number of proofs:
counter(?callable,?positive_integer) - zero_or_moreProtected predicates
(no local declarations; see entity ancestors if any)
Private predicates
mutation/4
Returns a random mutation of a term into another term of the same type using mutator N. The input Term is assume to be valid for the given Type.
Compilation flags:
static, multifileTemplate:
mutation(Type,N,Term,Mutation)Mode and number of proofs:
mutation(?callable,?positive_integer,@term,-term) - zero_or_morecounter_/2
Internal counter for the number of mutations available for a given type.
Compilation flags:
dynamicTemplate:
counter_(Type,N)Mode and number of proofs:
counter_(?callable,?positive_integer) - zero_or_moreOperators
(none)
See also